[scudo] PopBatch after populateFreeList()
authorChia-hung Duan <chiahungduan@google.com>
Tue, 20 Jun 2023 22:25:17 +0000 (22:25 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Fri, 23 Jun 2023 18:53:22 +0000 (18:53 +0000)
commitd0290b2f0c8093968d96bacb478d86fe84478833
tree820502223c044699dbe0757e8e7ff30b86408d69
parent18207dbc3a614542906be4f7a7a69b2fb6f448f7
[scudo] PopBatch after populateFreeList()

Ensure the thread that refills freelist will get the Batch without
contending the lock in SizeClassAllocator64.

Reviewed By: cferris

Differential Revision: https://reviews.llvm.org/D152419
compiler-rt/lib/scudo/standalone/local_cache.h
compiler-rt/lib/scudo/standalone/primary64.h