Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable] [vm/debugger] Use safepoint-safe RwLock for breakpoint locat…
…ions locks and Ensure setting breakpoints is lock-safe. TEST=DartAPI_BreakpointLockRace and DeoptimizeFramesWhenSettingBreakpoint Fixes #54650 flutter/flutter#140878 Acquire reload opreation scope when deoptimizing the world to ensure locks can be acquired for compilation. Set up scope for operations that can be run while the world is deoptimized and stopped to avoid races. Ensure code stays unoptizimed when single stepping, prevent other isolates to reoptimize. Bug: #54650 and flutter/flutter#140878 Change-Id: I9a88096f15a34b645281e5b2b3805a73dd93672e Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/347420 and https://dart-review.googlesource.com/c/sdk/+/345743 Cherry-pick-request: #54699 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/347650 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Kevin Chisholm <[email protected]>
- Loading branch information