Skip to content
Commit 329f477b authored by Anton Bikineev's avatar Anton Bikineev Committed by Chromium LUCI CQ
Browse files

PCScan: Make sure safepoint is entered iff the scanner thread is ready

Currently, in the initialization phase, if scheduling the PCScan thread
takes long time, the mutator can enter safepoint multiple times, causing
some internal data structures to be corrupted (traces). This change
makes sure that safepoints can only be entered if the scanning thread
had started execution.

Bug: 11297512
Change-Id: I0378ca4be1e0809833797003726f99de3253df53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2822251


Commit-Queue: Anton Bikineev <bikineev@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#871967}
parent 80e97242
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment