Commit 82f8a10
[vm] Take only a read lock during Field::SetStaticValue.
It is safe for multiple isolates to set their values concurrently. Only growth of the field tables needs to be excluded by the write lock.
A storm of such setters are invoked as part of core library initialization during isolate spawning.
TEST=ci, tsan
Change-Id: I4677e33ee80bb06d261ada2ae9d6b71c94fde611
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405400
Commit-Queue: Ryan Macnak <[email protected]>
Reviewed-by: Alexander Aprelev <[email protected]>1 parent 8a1010f commit 82f8a10
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13330 | 13330 | | |
13331 | 13331 | | |
13332 | 13332 | | |
13333 | | - | |
| 13333 | + | |
13334 | 13334 | | |
13335 | 13335 | | |
13336 | 13336 | | |
| |||
0 commit comments