This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Acquire FLLock in mergeGroupsToReleaseBack
ClosedPublic

Authored by Chia-hungDuan on Jul 24 2023, 10:26 AM.

Details

Summary

This removes the need of ScopedUnlock and make the future use of
condition variable easier to wake up waiting threads.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Jul 24 2023, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 10:26 AM
Herald added subscribers: yaneury, Enna1. · View Herald Transcript
Chia-hungDuan requested review of this revision.Jul 24 2023, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2023, 10:26 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cferris added inline comments.Jul 24 2023, 3:07 PM
compiler-rt/lib/scudo/standalone/primary64.h
1057

Would it make sense to change this to Recorder.getReleasedBytes() and remove the uptr ReleasedBytes up above? Since this isn't under a lock any more, that variable isn't needed.

Chia-hungDuan marked an inline comment as done.

Address review comment

cferris accepted this revision.Jul 25 2023, 12:45 PM

LGTM.

This revision is now accepted and ready to land.Jul 25 2023, 12:45 PM
Chia-hungDuan edited the summary of this revision. (Show Details)Jul 25 2023, 2:40 PM
This revision was landed with ongoing or failed builds.Jul 25 2023, 2:42 PM
This revision was automatically updated to reflect the committed changes.