mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Add batching to arena bins.
This adds a fast-path for threads freeing a small number of allocations to bins which are not their "home-base" and which encounter lock contention in attempting to do so. In producer-consumer workflows, such small lock hold times can cause lock convoying that greatly increases overall bin mutex contention.
This commit is contained in:
parent
44d91cf243
commit
fc615739cb
16 changed files with 722 additions and 78 deletions
|
|
@ -206,6 +206,7 @@ TESTS_UNIT := \
|
|||
$(srcroot)test/unit/base.c \
|
||||
$(srcroot)test/unit/batch_alloc.c \
|
||||
$(srcroot)test/unit/batcher.c \
|
||||
$(srcroot)test/unit/bin_batching.c \
|
||||
$(srcroot)test/unit/binshard.c \
|
||||
$(srcroot)test/unit/bitmap.c \
|
||||
$(srcroot)test/unit/bit_util.c \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue