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

Side by Side Diff: src/isolate.cc

Issue 386943003: Revert "Remove sequential sweeping mode and perform lazy sweeping when no sweeper threads are activ… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/incremental-marking.cc ('k') | src/mark-compact.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 1551
1552 for (int i = 0; i < num_sweeper_threads_; i++) { 1552 for (int i = 0; i < num_sweeper_threads_; i++) {
1553 sweeper_thread_[i]->Stop(); 1553 sweeper_thread_[i]->Stop();
1554 delete sweeper_thread_[i]; 1554 delete sweeper_thread_[i];
1555 sweeper_thread_[i] = NULL; 1555 sweeper_thread_[i] = NULL;
1556 } 1556 }
1557 delete[] sweeper_thread_; 1557 delete[] sweeper_thread_;
1558 sweeper_thread_ = NULL; 1558 sweeper_thread_ = NULL;
1559 1559
1560 if (FLAG_job_based_sweeping && 1560 if (FLAG_job_based_sweeping &&
1561 heap_.mark_compact_collector()->sweeping_in_progress()) { 1561 heap_.mark_compact_collector()->IsConcurrentSweepingInProgress()) {
1562 heap_.mark_compact_collector()->EnsureSweepingCompleted(); 1562 heap_.mark_compact_collector()->WaitUntilSweepingCompleted();
1563 } 1563 }
1564 1564
1565 if (FLAG_hydrogen_stats) GetHStatistics()->Print(); 1565 if (FLAG_hydrogen_stats) GetHStatistics()->Print();
1566 1566
1567 if (FLAG_print_deopt_stress) { 1567 if (FLAG_print_deopt_stress) {
1568 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); 1568 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_);
1569 } 1569 }
1570 1570
1571 // We must stop the logger before we tear down other components. 1571 // We must stop the logger before we tear down other components.
1572 Sampler* sampler = logger_->sampler(); 1572 Sampler* sampler = logger_->sampler();
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 if (prev_ && prev_->Intercept(flag)) return true; 2348 if (prev_ && prev_->Intercept(flag)) return true;
2349 // Then check whether this scope intercepts. 2349 // Then check whether this scope intercepts.
2350 if ((flag & intercept_mask_)) { 2350 if ((flag & intercept_mask_)) {
2351 intercepted_flags_ |= flag; 2351 intercepted_flags_ |= flag;
2352 return true; 2352 return true;
2353 } 2353 }
2354 return false; 2354 return false;
2355 } 2355 }
2356 2356
2357 } } // namespace v8::internal 2357 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698