Files
sdk/runtime/vm
Martin Kustermann b7ad7a3000 [gardening] Use a read lock instead of a write lock
When accessing the list of isolates in a group to get the first one we
only need a read-lock, not a write-lock.

This fixes hot-reload bot timeouts where a mutator hits a StackOverflow
slowpath that triggers a reload, which loops over all isolates in a
group to stop BG compiler (takes read lock). The BG compiler in return
will try to acquire write-lock for `FirstIsolate()`, which causes a
deadlock.

TEST=Existing reload timeouts.

Change-Id: Iba9264cc4990a4f00697844c44fad407cebf2e21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183003
Reviewed-by: Clement Skau <cskau@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
2021-02-05 10:17:22 +00:00
..
2019-10-07 18:13:06 +00:00
2020-12-04 22:46:12 +00:00
2020-06-26 09:39:15 +00:00
2019-10-27 18:18:29 +00:00
2020-12-10 12:15:17 +00:00
2020-11-16 23:52:40 +00:00
2020-05-04 21:15:27 +00:00
2020-10-28 17:42:35 +00:00
2020-10-28 17:42:35 +00:00
2020-05-04 21:15:27 +00:00
2020-08-06 19:55:12 +00:00
2020-08-06 19:55:12 +00:00