Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: src/d8.cc

Issue 1231473002: d8 workers: fix race on quit() with context_mutex_ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix V8_SHARED and omit_quit Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-4279.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 7db6f3ed9e442081528e05140bd25b8911e26cb6..854727125fda5e0147e979a863513e7917d20dd7 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -810,6 +810,9 @@ void Shell::WorkerTerminate(const v8::FunctionCallbackInfo<v8::Value>& args) {
void Shell::Quit(const v8::FunctionCallbackInfo<v8::Value>& args) {
int exit_code = args[0]->Int32Value();
+#ifndef V8_SHARED
+ CleanupWorkers();
+#endif // !V8_SHARED
OnExit(args.GetIsolate());
exit(exit_code);
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-4279.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698