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

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

Issue 361983003: Wait for sweeper threads only if we have to. (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/heap-snapshot-generator.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 "src/compiler-intrinsics.h" 8 #include "src/compiler-intrinsics.h"
9 #include "src/spaces.h" 9 #include "src/spaces.h"
10 10
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 void SweepInParallel(PagedSpace* space); 663 void SweepInParallel(PagedSpace* space);
664 664
665 void WaitUntilSweepingCompleted(); 665 void WaitUntilSweepingCompleted();
666 666
667 bool IsSweepingCompleted(); 667 bool IsSweepingCompleted();
668 668
669 void RefillFreeList(PagedSpace* space); 669 void RefillFreeList(PagedSpace* space);
670 670
671 bool AreSweeperThreadsActivated(); 671 bool AreSweeperThreadsActivated();
672 672
673 bool IsConcurrentSweepingInProgress(); 673 // If a paged space is passed in, this method checks if the given space is
674 // swept concurrently. Otherwise, this method checks if concurrent sweeping
675 // is in progress right now on any space.
676 bool IsConcurrentSweepingInProgress(PagedSpace* space = NULL);
674 677
675 void set_sequential_sweeping(bool sequential_sweeping) { 678 void set_sequential_sweeping(bool sequential_sweeping) {
676 sequential_sweeping_ = sequential_sweeping; 679 sequential_sweeping_ = sequential_sweeping;
677 } 680 }
678 681
679 bool sequential_sweeping() const { 682 bool sequential_sweeping() const {
680 return sequential_sweeping_; 683 return sequential_sweeping_;
681 } 684 }
682 685
683 // Mark the global table which maps weak objects to dependent code without 686 // Mark the global table which maps weak objects to dependent code without
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 private: 982 private:
980 MarkCompactCollector* collector_; 983 MarkCompactCollector* collector_;
981 }; 984 };
982 985
983 986
984 const char* AllocationSpaceName(AllocationSpace space); 987 const char* AllocationSpaceName(AllocationSpace space);
985 988
986 } } // namespace v8::internal 989 } } // namespace v8::internal
987 990
988 #endif // V8_MARK_COMPACT_H_ 991 #endif // V8_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap-snapshot-generator.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698