[CP] [beta] Cherry pick https://dart-review.googlesource.com/c/sdk/+/328380 #53713
Labels
area-vm
Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-merged
Cherry-pick has been merged to the stable or beta branch.
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-beta
Commit(s) to merge
f36c109
Target
beta
Prepared changelist for beta/stable
https://dart-review.googlesource.com/c/sdk/+/329804
Issue Description
Crash with EXC_BAD_ACCESS on ios when profiling.
What is the fix
Don't assume the isolate has a mutator during a profile sample. A profiling sample can be taken when Thread::Current() and Thread::Current()->isolate() are non-NULL. When a thread is entering or exiting an isolate, there is a brief window between the TLS being set/cleared and Isolate::mutator_thread_ being set/cleared
Why cherry-pick
The bug manifests as a crash when users are profiling their apps and hampers developedr productivity.
Risk
low
Issue link(s)
flutter/flutter#134548
Extra Info
No response
The text was updated successfully, but these errors were encountered: