This is an archive of the discontinued LLVM Phabricator instance.

tsan: add DynamicMutexSet helper
ClosedPublic

Authored by dvyukov on Oct 25 2021, 6:58 AM.

Details

Summary

MutexSet is too large to be allocated on stack.
But we need local MutexSet objects in few places
and use various hacks to allocate them.
Add DynamicMutexSet helper that simplifies allocation
of such objects.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Oct 25 2021, 6:58 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2021, 6:58 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Oct 25 2021, 7:57 AM
melver added inline comments.
compiler-rt/lib/tsan/rtl/tsan_mutexset.h
76

Can it safely be copied/assigned? If not, maybe delete copy/assign ops.

This revision is now accepted and ready to land.Oct 25 2021, 7:57 AM
dvyukov updated this revision to Diff 382047.Oct 25 2021, 10:40 AM

deleted copy ctor/operator=

dvyukov marked an inline comment as done.Oct 25 2021, 10:42 AM
This revision was landed with ongoing or failed builds.Oct 25 2021, 10:45 AM
This revision was automatically updated to reflect the committed changes.