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

Unified Diff: src/isolate.cc

Issue 12380020: Turn off parallel and concurrent sweeping on system with just one processor/core. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | no next file » | 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 59d498c5bf4071ec80d3622d354ea77e6cc0d838..c8e6f05f3d1e73da2f33e51686cc2a8fa773da7b 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -136,7 +136,7 @@ int SystemThreadManager::NumberOfParallelSystemThreads(
int number_of_threads = Min(OS::NumberOfCores(), kMaxThreads);
ASSERT(number_of_threads > 0);
if (number_of_threads == 1) {
- return 1;
+ return 0;
}
if (type == PARALLEL_SWEEPING) {
return number_of_threads;
@@ -2173,6 +2173,8 @@ bool Isolate::Init(Deserializer* des) {
marking_thread_[i] = new MarkingThread(this);
marking_thread_[i]->Start();
}
+ } else {
+ FLAG_parallel_marking = false;
}
if (FLAG_sweeper_threads == 0) {
@@ -2192,6 +2194,9 @@ bool Isolate::Init(Deserializer* des) {
sweeper_thread_[i] = new SweeperThread(this);
sweeper_thread_[i]->Start();
}
+ } else {
+ FLAG_concurrent_sweeping = false;
+ FLAG_parallel_sweeping = false;
}
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698