Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[beta] [vm/debugger] Use safepoint-safe RwLock for breakpoint locatio…
…ns locks and Ensure setting breakpoints is lock-safe. 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 it. Fixes: #54650 flutter/flutter#140878 TEST=DartAPI_BreakpointLockRace and DeoptimizeFramesWhenSettingBreakpoint Bug: #54650 and flutter/flutter#140878 Cherry-pick: https://dart-review.googlesource.com/c/sdk/+/347420 and https://dart-review.googlesource.com/c/sdk/+/345743 Cherry-pick-request: #54699 Change-Id: Ia4bc883121dac978fbb76027906a810000ef1138 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/347760 Reviewed-by: Alexander Aprelev <[email protected]> Commit-Queue: Siva Annamalai <[email protected]>
- Loading branch information