This is an archive of the discontinued LLVM Phabricator instance.

[scudo] Calling getStats requires holding lock
ClosedPublic

Authored by Chia-hungDuan on Jan 19 2023, 11:11 AM.

Details

Summary

We didn't acquire the mutex while accessing those lock protected data,
this CL fixes it and now we don't need to disable the allocator while
reading its states.

Diff Detail

Event Timeline

Chia-hungDuan created this revision.Jan 19 2023, 11:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 11:11 AM
Chia-hungDuan requested review of this revision.Jan 19 2023, 11:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2023, 11:11 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
cferris accepted this revision.Feb 9 2023, 10:54 PM

LGTM

This revision is now accepted and ready to land.Feb 9 2023, 10:54 PM
This revision was automatically updated to reflect the committed changes.