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

Unified Diff: src/isolate.cc

Issue 938683002: Add --single-threaded flag that disables background threads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « src/heap/mark-compact.cc ('k') | src/optimizing-compiler-thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 8c3fce930ed6732c281a46ed83cd30a915a52b39..119b0758c0abf739d321692f8dbcdc96ee7499c5 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2111,6 +2111,7 @@ bool Isolate::Init(Deserializer* des) {
// Choose the default between 1 and 4.
max_available_threads_ =
Max(Min(base::SysInfo::NumberOfProcessors(), 4), 1);
+ if (FLAG_single_threaded) max_available_threads_ = 1;
}
if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) {
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/optimizing-compiler-thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698