6e72fed210
Background compiler could be running while Dart_SortClasses() clears all code. It causes flaky crashes on vm/dart/appjit_bytecode_simple_test test as background compiler may need to access bytecode, which can be read in mutator thread only. Also, background compiler may potentially add new code which would not be compatible with rearranged class ids. This CL stops background compiler in Dart_SortClasses() before code is cleared to avoid these conflicts. Change-Id: Ide30d469dc1c4b0e853a2244dc2ddfd5cb70d86a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/100726 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>