This is an archive of the discontinued LLVM Phabricator instance.

lsan: remove pthread_detach/join interceptors
ClosedPublic

Authored by dvyukov on Nov 15 2021, 10:49 AM.

Details

Summary

They don't seem to do anything useful in lsan.
They are needed only if a tools needs to execute
some custom logic during detach/join, or if it uses
thread registry quarantine. Lsan does none of this.
And if a tool cares then it would also need to intercept
pthread_tryjoin_np and pthread_timedjoin_np, otherwise
it will mess thread states.
Fwiw, asan does not intercept these functions either.

Diff Detail

Event Timeline

dvyukov created this revision.Nov 15 2021, 10:49 AM
dvyukov requested review of this revision.Nov 15 2021, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 15 2021, 10:49 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.Nov 16 2021, 6:20 PM
This revision is now accepted and ready to land.Nov 16 2021, 6:20 PM
This revision was automatically updated to reflect the committed changes.