mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8233380: CHT: Node allocation and freeing
Reviewed-by: rehn, tschatzl
This commit is contained in:
parent
2563a6a9b5
commit
70f6c67051
7 changed files with 76 additions and 60 deletions
|
@ -69,11 +69,11 @@ class ThreadIdTableConfig : public AllStatic {
|
|||
jlong tid = value->tid();
|
||||
return primitive_hash(tid);
|
||||
}
|
||||
static void* allocate_node(size_t size, Value const& value) {
|
||||
static void* allocate_node(void* context, size_t size, Value const& value) {
|
||||
ThreadIdTable::item_added();
|
||||
return AllocateHeap(size, mtInternal);
|
||||
}
|
||||
static void free_node(void* memory, Value const& value) {
|
||||
static void free_node(void* context, void* memory, Value const& value) {
|
||||
delete value;
|
||||
FreeHeap(memory);
|
||||
ThreadIdTable::item_removed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue