This is an archive of the discontinued LLVM Phabricator instance.

[NFC][LSAN] Limit the number of concurrent threads is the test
ClosedPublic

Authored by vitalybuka on May 11 2021, 12:27 AM.

Diff Detail

Event Timeline

vitalybuka requested review of this revision.May 11 2021, 12:27 AM
vitalybuka created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2021, 12:27 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka edited the summary of this revision. (Show Details)May 11 2021, 12:30 AM
vitalybuka retitled this revision from [NFC][LSAN] Reduce number of threads is the test to [NFC][LSAN] Limit the number of concurrent threads is the test.May 11 2021, 12:32 AM
This revision is now accepted and ready to land.May 11 2021, 8:22 AM

This won't work on Darwin.

DIR *d = opendir("/proc/self/task");
assert(d);

Assertion failed: (d), function count_threads, file llvm-project/compiler-rt/test/lsan/TestCases/many_threads_detach.cpp, line 26.

vitalybuka reopened this revision.Jun 7 2021, 4:22 PM
This revision is now accepted and ready to land.Jun 7 2021, 4:22 PM