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

Side by Side Diff: src/mark-compact.h

Issue 252123006: Wait for sweeper threads in incremental marking step when sweeper threads are done sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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.cc » ('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 #ifndef V8_MARK_COMPACT_H_ 5 #ifndef V8_MARK_COMPACT_H_
6 #define V8_MARK_COMPACT_H_ 6 #define V8_MARK_COMPACT_H_
7 7
8 #include "compiler-intrinsics.h" 8 #include "compiler-intrinsics.h"
9 #include "spaces.h" 9 #include "spaces.h"
10 10
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 664
665 bool is_compacting() const { return compacting_; } 665 bool is_compacting() const { return compacting_; }
666 666
667 MarkingParity marking_parity() { return marking_parity_; } 667 MarkingParity marking_parity() { return marking_parity_; }
668 668
669 // Concurrent and parallel sweeping support. 669 // Concurrent and parallel sweeping support.
670 void SweepInParallel(PagedSpace* space); 670 void SweepInParallel(PagedSpace* space);
671 671
672 void WaitUntilSweepingCompleted(); 672 void WaitUntilSweepingCompleted();
673 673
674 bool IsSweepingCompleted();
675
674 void RefillFreeList(PagedSpace* space); 676 void RefillFreeList(PagedSpace* space);
675 677
676 bool AreSweeperThreadsActivated(); 678 bool AreSweeperThreadsActivated();
677 679
678 bool IsConcurrentSweepingInProgress(); 680 bool IsConcurrentSweepingInProgress();
679 681
680 void set_sequential_sweeping(bool sequential_sweeping) { 682 void set_sequential_sweeping(bool sequential_sweeping) {
681 sequential_sweeping_ = sequential_sweeping; 683 sequential_sweeping_ = sequential_sweeping;
682 } 684 }
683 685
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 private: 990 private:
989 MarkCompactCollector* collector_; 991 MarkCompactCollector* collector_;
990 }; 992 };
991 993
992 994
993 const char* AllocationSpaceName(AllocationSpace space); 995 const char* AllocationSpaceName(AllocationSpace space);
994 996
995 } } // namespace v8::internal 997 } } // namespace v8::internal
996 998
997 #endif // V8_MARK_COMPACT_H_ 999 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/incremental-marking.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698