Skip to content

Commit 346c7e5

Browse files
Suppress TSan's report of the exit park clearing allocation limits
ParkThreadsForExit clears a running thread's allocation limits without a lock, as Collect does through WaitForSafe, so that its next allocation fails and it parks. #423
1 parent ca09e31 commit 346c7e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎test/sanitizers/tsan.supp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ race_top:GlobalAllocator::finishThreadJob
2727

2828
# GC: WaitForSafe, inlined into Collect, clears a running thread's allocation
2929
# limits without a lock so that its next allocation fails and it parks.
30+
# ParkThreadsForExit does the same at exit with WaitForSafeUntil.
3031
race_top:GlobalAllocator::Collect
32+
race_top:GlobalAllocator::ParkThreadsForExit
3133

3234
# GC: parallel marking. Mark threads set the same mark bytes, which only ever
3335
# go one way, and hand chunks of work between them.

0 commit comments

Comments
 (0)