While populating new blocks, we didn't always put them into their own
groups because that needs additional sort for an almost-sorted new
blocks array. However, ensuring all blocks are placed in the right group
enables the fast identifying of unused pages in a group by simply
accouting the number of free blocks are there. Therefore, this commit is
used to set up the invariant for future optimizations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
One small comment issue. After that, it's ready to submit.
compiler-rt/lib/scudo/standalone/primary32.h | ||
---|---|---|
645–646 | This comment is slightly confusing, maybe better wording would be: // Only shuffle if not the batches size class. Although maybe delete the comment since it doesn't seem particularly helpful. Same for the duplicate version of this comment in primary64.h. |
This comment is slightly confusing, maybe better wording would be:
// Only shuffle if not the batches size class.
Although maybe delete the comment since it doesn't seem particularly helpful.
Same for the duplicate version of this comment in primary64.h.