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

Unified Diff: src/isolate.cc

Issue 1064723005: Remove support for specifying the number of available threads (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/isolate.h ('k') | src/optimizing-compile-dispatcher.h » ('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 9a9403a79f660441347df4f2349e2bfa59827551..978c52ec2a7d9953f2bda54c6e1a9a9e428fc736 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -2122,18 +2122,9 @@ bool Isolate::Init(Deserializer* des) {
set_event_logger(Logger::DefaultEventLoggerSentinel);
}
- // Set default value if not yet set.
- // TODO(yangguo): move this to ResourceConstraints::ConfigureDefaults
- // once ResourceConstraints becomes an argument to the Isolate constructor.
- if (max_available_threads_ < 1) {
- // Choose the default between 1 and 4.
- max_available_threads_ =
- Max(Min(base::SysInfo::NumberOfProcessors(), 4), 1);
- }
-
if (FLAG_trace_hydrogen || FLAG_trace_hydrogen_stubs) {
PrintF("Concurrent recompilation has been disabled for tracing.\n");
- } else if (OptimizingCompileDispatcher::Enabled(max_available_threads_)) {
+ } else if (OptimizingCompileDispatcher::Enabled()) {
optimizing_compile_dispatcher_ = new OptimizingCompileDispatcher(this);
}
« no previous file with comments | « src/isolate.h ('k') | src/optimizing-compile-dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698