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

Unified Diff: src/v8.cc

Issue 17250006: Move static flag modifications to V8::InitializeOncePerProcessImpl(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8.cc
diff --git a/src/v8.cc b/src/v8.cc
index 80b12deea62ca80773964baa70115d53389f497f..f9d543d16c8ea6e433c3755b0e18105e80a7eaf2 100644
--- a/src/v8.cc
+++ b/src/v8.cc
@@ -271,6 +271,34 @@ void V8::InitializeOncePerProcessImpl() {
FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2;
}
if (FLAG_trace_hydrogen) FLAG_parallel_recompilation = false;
+ if (FLAG_sweeper_threads == 0) {
Michael Starzinger 2013/06/17 15:17:25 This should actually say "FLAG_sweeper_threads <=
Hannes Payer (out of office) 2013/06/17 17:07:31 Done.
+ if (FLAG_concurrent_sweeping) {
+ FLAG_sweeper_threads = SystemThreadManager::
+ NumberOfParallelSystemThreads(
+ SystemThreadManager::CONCURRENT_SWEEPING);
+ } else if (FLAG_parallel_sweeping) {
+ FLAG_sweeper_threads = SystemThreadManager::
+ NumberOfParallelSystemThreads(
+ SystemThreadManager::PARALLEL_SWEEPING);
+ }
+ if (FLAG_sweeper_threads == 0) {
+ FLAG_concurrent_sweeping = false;
+ FLAG_parallel_sweeping = false;
+ }
+ }
+ if (FLAG_parallel_marking && FLAG_marking_threads == 0) {
Michael Starzinger 2013/06/17 15:17:25 This will start marking threads with "--noparallel
Hannes Payer (out of office) 2013/06/17 17:07:31 Done.
+ FLAG_marking_threads = SystemThreadManager::
+ NumberOfParallelSystemThreads(
+ SystemThreadManager::PARALLEL_MARKING);
+ if (FLAG_marking_threads == 0) {
+ FLAG_parallel_marking = false;
+ }
+ }
+ if (FLAG_parallel_recompilation &&
+ SystemThreadManager::NumberOfParallelSystemThreads(
+ SystemThreadManager::PARALLEL_RECOMPILATION) == 0) {
+ FLAG_parallel_recompilation = false;
+ }
OS::SetUp();
Sampler::SetUp();
CPU::SetUp();
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698