mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-25 04:12:12 +03:00
Use regular arena allocation for huge tree nodes.
This avoids grabbing the base mutex, as a step towards fine-grained locking for huge allocations. The thread cache also provides a tiny (~3%) improvement for serial huge allocations.
This commit is contained in:
parent
8bb3198f72
commit
f22214a29d
5 changed files with 29 additions and 15 deletions
|
|
@ -240,7 +240,7 @@ a0free(void *ptr)
|
|||
if (chunk != ptr)
|
||||
arena_dalloc(NULL, chunk, ptr, false);
|
||||
else
|
||||
huge_dalloc(ptr);
|
||||
huge_dalloc(NULL, ptr);
|
||||
}
|
||||
|
||||
/* Create a new arena and insert it into the arenas array at index ind. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue