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

Side by Side Diff: src/isolate.cc

Issue 384373002: Remove sequential sweeping mode and perform lazy sweeping when no sweeper threads are active. (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 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 1552
1553 for (int i = 0; i < num_sweeper_threads_; i++) { 1553 for (int i = 0; i < num_sweeper_threads_; i++) {
1554 sweeper_thread_[i]->Stop(); 1554 sweeper_thread_[i]->Stop();
1555 delete sweeper_thread_[i]; 1555 delete sweeper_thread_[i];
1556 sweeper_thread_[i] = NULL; 1556 sweeper_thread_[i] = NULL;
1557 } 1557 }
1558 delete[] sweeper_thread_; 1558 delete[] sweeper_thread_;
1559 sweeper_thread_ = NULL; 1559 sweeper_thread_ = NULL;
1560 1560
1561 if (FLAG_job_based_sweeping && 1561 if (FLAG_job_based_sweeping &&
1562 heap_.mark_compact_collector()->IsConcurrentSweepingInProgress()) { 1562 heap_.mark_compact_collector()->sweeping_in_progress()) {
1563 heap_.mark_compact_collector()->WaitUntilSweepingCompleted(); 1563 heap_.mark_compact_collector()->EnsureSweepingCompleted();
1564 } 1564 }
1565 1565
1566 if (FLAG_hydrogen_stats) GetHStatistics()->Print(); 1566 if (FLAG_hydrogen_stats) GetHStatistics()->Print();
1567 1567
1568 if (FLAG_print_deopt_stress) { 1568 if (FLAG_print_deopt_stress) {
1569 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_); 1569 PrintF(stdout, "=== Stress deopt counter: %u\n", stress_deopt_count_);
1570 } 1570 }
1571 1571
1572 // We must stop the logger before we tear down other components. 1572 // We must stop the logger before we tear down other components.
1573 Sampler* sampler = logger_->sampler(); 1573 Sampler* sampler = logger_->sampler();
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 if (prev_ && prev_->Intercept(flag)) return true; 2349 if (prev_ && prev_->Intercept(flag)) return true;
2350 // Then check whether this scope intercepts. 2350 // Then check whether this scope intercepts.
2351 if ((flag & intercept_mask_)) { 2351 if ((flag & intercept_mask_)) {
2352 intercepted_flags_ |= flag; 2352 intercepted_flags_ |= flag;
2353 return true; 2353 return true;
2354 } 2354 }
2355 return false; 2355 return false;
2356 } 2356 }
2357 2357
2358 } } // namespace v8::internal 2358 } } // 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