This is an archive of the discontinued LLVM Phabricator instance.

tsan: deflake dlopen_static_tls.cpp
ClosedPublic

Authored by dvyukov on Dec 13 2021, 12:33 AM.

Details

Summary

Currently the test calls dlclose in the thread
concurrently with the main thread calling a function
from the dynamic library. This is not good.
Wait for the main thread to call the function
before calling dlclose.

Depends on D115612.

Diff Detail

Unit TestsFailed

Event Timeline

dvyukov requested review of this revision.Dec 13 2021, 12:33 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 13 2021, 12:33 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Dec 13 2021, 3:00 AM
This revision is now accepted and ready to land.Dec 13 2021, 3:00 AM
This revision was landed with ongoing or failed builds.Dec 13 2021, 3:01 AM
This revision was automatically updated to reflect the committed changes.