[scudo] Fix insufficient blocks when pushing BatchClass blocks
authorChia-hung Duan <chiahungduan@google.com>
Mon, 26 Jun 2023 22:28:38 +0000 (22:28 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Mon, 26 Jun 2023 22:37:58 +0000 (22:37 +0000)
commitb3e42830aba036e8ef1a37734872dba73ee750e7
tree4ccacf07bd88ebcf4a4beca978b513bc827c7f1a
parent6a6db74b77130874f9fd03b366ae77feab746dd7
[scudo] Fix insufficient blocks when pushing BatchClass blocks

`populateFreeListAndPopBatch` may return batch with single block. Merge
it with the reported free blocks and enqueue them together.

Reviewed By: cferris, fabio-d

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