[all-commits] [llvm/llvm-project] b9c673: [scudo] Make local cache be agnostic to the type o...
ChiaHungDuan via All-commits
all-commits at lists.llvm.org
Mon Oct 9 13:12:08 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b9c6737ba7307308ecb6ec4cecc4c07e48e7c141
https://github.com/llvm/llvm-project/commit/b9c6737ba7307308ecb6ec4cecc4c07e48e7c141
Author: ChiaHungDuan <chiahungduan at google.com>
Date: 2023-10-09 (Mon, 09 Oct 2023)
Changed paths:
M compiler-rt/lib/scudo/standalone/CMakeLists.txt
A compiler-rt/lib/scudo/standalone/allocator_common.h
M compiler-rt/lib/scudo/standalone/local_cache.h
M compiler-rt/lib/scudo/standalone/primary32.h
M compiler-rt/lib/scudo/standalone/primary64.h
M compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
Log Message:
-----------
[scudo] Make local cache be agnostic to the type of node in freelist (#67379)
This change moves the `TransferBatch` and `BatchGroup` out of
SizeClassAllocatorLocalCache. It allows us that the node in freelist can
store more blocks instead of depending on the number of blocks cached.
That means we will be able to store more blocks in each node of freelist
and therefore reduce the memory used by BatchClass (with little
performance overhead). Note that we haven't enabled that in this patch.
This is the first step of this transition.
More information about the All-commits
mailing list