Chromium Code Reviews
DescriptionAll worker threads should be joined before main thread's V8 isolate is destroyed
Currently the following scenario can happen:
1) The main thread calls blink::shutdown().
2) The main thread calls V8Initializer::shutdown(), which destroys the V8 isolate.
3) Worker threads are still running and can trigger Oilpan's GC (<== this accesses the isolate and causes crash).
4) The main thread calls modulesInitializer().shutdown() and joins all workers.
To address the issue, this CL moves 4) to between 1) and 2).
BUG=610987
Committed: https://crrev.com/3c35abf17d76b2e4fe491a703b68b17c48725eeb
Cr-Commit-Position: refs/heads/master@{#392913}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||