Skip to content

Commit c1f0bc3

Browse files
aamcommit-bot@chromium.org
authored andcommitted
[vm/concurrency] When waking up ThreadInterrupter first check if it is shutdown already.
Fixes #42302 Change-Id: Ic250ce6d23d20d0435447c4e3ba546c1755c0458 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151024 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Alexander Aprelev <[email protected]>
1 parent 0b64f54 commit c1f0bc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/vm/thread_interrupter.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ void ThreadInterrupter::WakeUp() {
146146
}
147147
{
148148
MonitorLocker ml(monitor_);
149+
if (shutdown_) {
150+
// Late call
151+
return;
152+
}
149153
if (!initialized_) {
150154
// Early call.
151155
return;

0 commit comments

Comments
 (0)