This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Skip visiting all free blocks if grouping is disabled
ClosedPublic

Authored by Chia-hungDuan on Jul 31 2023, 1:51 PM.

Details

Summary

This is only applied to SizeClassAllocator64 which has single region.
In SizeClassAllocator32, the region size has to be equal to the group
size.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Jul 31 2023, 1:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 1:51 PM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.Jul 31 2023, 1:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 1:51 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Fix literal type used by GroupSizeLog

Small comment nit.

compiler-rt/lib/scudo/standalone/primary64.h
54

be greater

Address review comment

Chia-hungDuan marked an inline comment as done.Jul 31 2023, 2:11 PM
cferris accepted this revision.Jul 31 2023, 2:12 PM

LGTM.

This revision is now accepted and ready to land.Jul 31 2023, 2:12 PM