Ensure the thread that refills freelist will get the Batch without
contending the lock in SizeClassAllocator64.
Details
Details
- Reviewers
cferris - Commits
- rGd0290b2f0c80: [scudo] PopBatch after populateFreeList()
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/scudo/standalone/primary64.h | ||
---|---|---|
872 | Wouldn't it be better to pull this out of the if and else statements like: TransferBatch *B = popBatchImpl(C, ClassId, Region); |
Comment Actions
Address review comment
compiler-rt/lib/scudo/standalone/primary64.h | ||
---|---|---|
872 | Oops, definitely it'll be better. The FLLock was held in the if-clause. I moved it out later and forgot to move the popBatchImp(). Done. |
Wouldn't it be better to pull this out of the if and else statements like:
TransferBatch *B = popBatchImpl(C, ClassId, Region);