This is an archive of the discontinued LLVM Phabricator instance.

Reland "[scudo] Manage free blocks in BatchGroup."
ClosedPublic

Authored by Chia-hungDuan on Oct 15 2022, 2:16 PM.

Details

Summary

This is not a pure revert of c929bcb7d85700494217f3a2148549f8757e0eed.
It also includes a bug fix.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Oct 15 2022, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2022, 2:16 PM
Chia-hungDuan requested review of this revision.Oct 15 2022, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 15 2022, 2:16 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Add missing changes

Chia-hungDuan added inline comments.Oct 15 2022, 2:28 PM
compiler-rt/lib/scudo/standalone/primary32.h
164–165

The bug is how we determined the SameGroup value. In the old change, I only checked if there's number reorder happens. In fact, an already sorted array may not need to have SameGroup == true.

Fix linting error

cferris accepted this revision.Oct 20 2022, 5:10 PM

LGTM

This revision is now accepted and ready to land.Oct 20 2022, 5:10 PM
This revision was automatically updated to reflect the committed changes.