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

Unified Diff: content/browser/renderer_host/sandbox_ipc_linux.cc

Issue 1761853002: Shut down all threads before the main thread shuts down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | third_party/WebKit/Source/core/Init.h » ('j') | third_party/WebKit/Source/web/WebKit.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/sandbox_ipc_linux.cc
diff --git a/content/browser/renderer_host/sandbox_ipc_linux.cc b/content/browser/renderer_host/sandbox_ipc_linux.cc
index 8fb50d4738fdef1bfd5406c0c124e019a5a3376b..186c4f4c0d43b98ef417357b687084b2d02035a7 100644
--- a/content/browser/renderer_host/sandbox_ipc_linux.cc
+++ b/content/browser/renderer_host/sandbox_ipc_linux.cc
@@ -120,6 +120,9 @@ void SandboxIPCHandler::Run() {
}
}
+ if (blink_platform_impl_)
+ blink::shutdownWithoutV8();
kinuko 2016/03/07 06:36:56 Yeah this'd work.
sof 2016/03/07 07:54:03 naive question: would things break horribly if thi
haraken 2016/03/07 08:02:34 Do you mean we should call blink::initialize() and
sof 2016/03/07 08:20:38 ok, thanks. And allocating via Oilpan is an unavoi
haraken 2016/03/07 08:24:03 Yes. Heap::init was already in initializeWithoutV8
+
VLOG(1) << "SandboxIPCHandler stopping.";
}
@@ -434,9 +437,6 @@ void SandboxIPCHandler::SendRendererReply(
}
SandboxIPCHandler::~SandboxIPCHandler() {
- if (blink_platform_impl_)
- blink::shutdownWithoutV8();
-
if (IGNORE_EINTR(close(lifeline_fd_)) < 0)
PLOG(ERROR) << "close";
if (IGNORE_EINTR(close(browser_socket_)) < 0)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/Init.h » ('j') | third_party/WebKit/Source/web/WebKit.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698