606a1e76be
If two mutators concurrently execute a switchable call that targets a code object which has been disabled, they both go to runtime trying to fix that switchable call site's object pool. This Cl ensures we use the same logic as for other miss handlers to ensure we properly guard against concurrent accesses. The attached regression test will trigger a segfault - though only with low probability. Fixes https://github.com/dart-lang/sdk/issues/46539 TEST=vm/dart{,_2}/isolates/regress_46539_test Change-Id: I91d84d25d74fb742ea992016a581b118345dd404 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/205649 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Slava Egorov <vegorov@google.com>