DescriptionStop profiler on isolate teardown if still running
If the profiler is started via the API and not stopped, V8 will
intermittently crash during isolate teardown.
The fix is to run the DeleteAllProfiles function in Isolate::Deinit()
if cpu_profiler_ still exists.
https://groups.google.com/forum/#!topic/v8-dev/WsIlpbaD4mo
TEST= Run in debug mode, if you start a profile and don't stop it,
this assert should fail:
Fatal error in ../src/profiler/cpu-profiler.cc, line 414
Check failed: !is_profiling_.
Committed: https://crrev.com/8d00c2ca40459d46f127c8156c5afb7bfa79d9e6
Cr-Commit-Position: refs/heads/master@{#32953}
Patch Set 1 #
Messages
Total messages: 10 (5 generated)
|