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

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

Issue 1413763011: [heap] Fix rescanning live objects when aborting compaction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 years, 2 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/gc-tracer.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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 721
722 void EvacuatePagesInParallel(); 722 void EvacuatePagesInParallel();
723 723
724 // The number of parallel compaction tasks, including the main thread. 724 // The number of parallel compaction tasks, including the main thread.
725 int NumberOfParallelCompactionTasks(); 725 int NumberOfParallelCompactionTasks();
726 726
727 void WaitUntilCompactionCompleted(); 727 void WaitUntilCompactionCompleted();
728 728
729 void EvacuateNewSpaceAndCandidates(); 729 void EvacuateNewSpaceAndCandidates();
730 730
731 void VisitLiveObjects(Page* page, ObjectVisitor* visitor);
732
733 void SweepAbortedPages();
734
731 void ReleaseEvacuationCandidates(); 735 void ReleaseEvacuationCandidates();
732 736
733 // Moves the pages of the evacuation_candidates_ list to the end of their 737 // Moves the pages of the evacuation_candidates_ list to the end of their
734 // corresponding space pages list. 738 // corresponding space pages list.
735 void MoveEvacuationCandidatesToEndOfPagesList(); 739 void MoveEvacuationCandidatesToEndOfPagesList();
736 740
737 void SweepSpace(PagedSpace* space, SweeperType sweeper); 741 void SweepSpace(PagedSpace* space, SweeperType sweeper);
738 742
739 // Finalizes the parallel sweeping phase. Marks all the pages that were 743 // Finalizes the parallel sweeping phase. Marks all the pages that were
740 // swept in parallel. 744 // swept in parallel.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 private: 863 private:
860 MarkCompactCollector* collector_; 864 MarkCompactCollector* collector_;
861 }; 865 };
862 866
863 867
864 const char* AllocationSpaceName(AllocationSpace space); 868 const char* AllocationSpaceName(AllocationSpace space);
865 } // namespace internal 869 } // namespace internal
866 } // namespace v8 870 } // namespace v8
867 871
868 #endif // V8_HEAP_MARK_COMPACT_H_ 872 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698