f36c109471
A sample can be taken when Thread::Current() and Thread::Current()->isolate() are non-NULL. When a thread is entering or exiting an isolate, the is a brief window between the TLS being set/cleared and Isolate::mutator_thread_ being set/cleared. TEST=vm/cc/Profiler_EnterExitIsolate Bug: https://github.com/flutter/flutter/issues/134548 Change-Id: I7a6b25dabf930e8480d1a85d7f24c4765fc36b15 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/328380 Commit-Queue: Ryan Macnak <rmacnak@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>