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

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

Issue 1099783003: Reland Force full GCwhenever CollectAllGarbage is meant to trigger a full GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/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_HEAP_MARK_COMPACT_H_ 5 #ifndef V8_HEAP_MARK_COMPACT_H_
6 #define V8_HEAP_MARK_COMPACT_H_ 6 #define V8_HEAP_MARK_COMPACT_H_
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/heap/spaces.h" 9 #include "src/heap/spaces.h"
10 10
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 AllocationSpace to_old_space); 652 AllocationSpace to_old_space);
653 653
654 bool TryPromoteObject(HeapObject* object, int object_size); 654 bool TryPromoteObject(HeapObject* object, int object_size);
655 655
656 void InvalidateCode(Code* code); 656 void InvalidateCode(Code* code);
657 657
658 void ClearMarkbits(); 658 void ClearMarkbits();
659 659
660 bool abort_incremental_marking() const { return abort_incremental_marking_; } 660 bool abort_incremental_marking() const { return abort_incremental_marking_; }
661 661
662 bool finalize_incremental_marking() const {
663 return finalize_incremental_marking_;
664 }
665
662 bool is_compacting() const { return compacting_; } 666 bool is_compacting() const { return compacting_; }
663 667
664 MarkingParity marking_parity() { return marking_parity_; } 668 MarkingParity marking_parity() { return marking_parity_; }
665 669
666 // Concurrent and parallel sweeping support. If required_freed_bytes was set 670 // Concurrent and parallel sweeping support. If required_freed_bytes was set
667 // to a value larger than 0, then sweeping returns after a block of at least 671 // to a value larger than 0, then sweeping returns after a block of at least
668 // required_freed_bytes was freed. If required_freed_bytes was set to zero 672 // required_freed_bytes was freed. If required_freed_bytes was set to zero
669 // then the whole given space is swept. It returns the size of the maximum 673 // then the whole given space is swept. It returns the size of the maximum
670 // continuous freed memory chunk. 674 // continuous freed memory chunk.
671 int SweepInParallel(PagedSpace* space, int required_freed_bytes); 675 int SweepInParallel(PagedSpace* space, int required_freed_bytes);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 }; 746 };
743 747
744 // The current stage of the collector. 748 // The current stage of the collector.
745 CollectorState state_; 749 CollectorState state_;
746 #endif 750 #endif
747 751
748 bool reduce_memory_footprint_; 752 bool reduce_memory_footprint_;
749 753
750 bool abort_incremental_marking_; 754 bool abort_incremental_marking_;
751 755
756 bool finalize_incremental_marking_;
757
752 MarkingParity marking_parity_; 758 MarkingParity marking_parity_;
753 759
754 // True if we are collecting slots to perform evacuation from evacuation 760 // True if we are collecting slots to perform evacuation from evacuation
755 // candidates. 761 // candidates.
756 bool compacting_; 762 bool compacting_;
757 763
758 bool was_marked_incrementally_; 764 bool was_marked_incrementally_;
759 765
760 // True if concurrent or parallel sweeping is currently in progress. 766 // True if concurrent or parallel sweeping is currently in progress.
761 bool sweeping_in_progress_; 767 bool sweeping_in_progress_;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 private: 1005 private:
1000 MarkCompactCollector* collector_; 1006 MarkCompactCollector* collector_;
1001 }; 1007 };
1002 1008
1003 1009
1004 const char* AllocationSpaceName(AllocationSpace space); 1010 const char* AllocationSpaceName(AllocationSpace space);
1005 } 1011 }
1006 } // namespace v8::internal 1012 } // namespace v8::internal
1007 1013
1008 #endif // V8_HEAP_MARK_COMPACT_H_ 1014 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698