Skip to content

Commit 391b9ee

Browse files
rmacnak-googleCommit Queue
authored andcommitted
[vm] Fix use-after-free of isolate_groups_rwlock_ during shutdown.
TEST=ffi/async_void_function_callbacks_test Bug: #53248 Change-Id: I83370f2725f8b8a6bcd2fa1e5ebea2e11ae9606e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/415982 Commit-Queue: Ryan Macnak <[email protected]> Reviewed-by: Alexander Aprelev <[email protected]>
1 parent d0c9fcb commit 391b9ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runtime/vm/isolate.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,7 @@ void IsolateGroup::Shutdown() {
565565
Dart::UptimeMillis(), name);
566566
}
567567
MonitorLocker ml(Isolate::isolate_creation_monitor_);
568-
if (!Isolate::creation_enabled_ &&
569-
!IsolateGroup::HasApplicationIsolateGroups()) {
568+
if (!Isolate::creation_enabled_) {
570569
ml.Notify();
571570
}
572571
if (trace_shutdown) {

0 commit comments

Comments
 (0)