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

Side by Side Diff: src/heap/heap.h

Issue 1481953002: Move map retaining to finalization of incremental marking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/heap.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_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after
1807 GCIdleTimeHeapState heap_state, double start_ms, 1807 GCIdleTimeHeapState heap_state, double start_ms,
1808 double deadline_in_ms); 1808 double deadline_in_ms);
1809 1809
1810 inline void UpdateAllocationsHash(HeapObject* object); 1810 inline void UpdateAllocationsHash(HeapObject* object);
1811 inline void UpdateAllocationsHash(uint32_t value); 1811 inline void UpdateAllocationsHash(uint32_t value);
1812 void PrintAlloctionsHash(); 1812 void PrintAlloctionsHash();
1813 1813
1814 void AddToRingBuffer(const char* string); 1814 void AddToRingBuffer(const char* string);
1815 void GetFromRingBuffer(char* buffer); 1815 void GetFromRingBuffer(char* buffer);
1816 1816
1817 void CompactRetainedMaps(ArrayList* retained_maps);
1818
1817 // Attempt to over-approximate the weak closure by marking object groups and 1819 // Attempt to over-approximate the weak closure by marking object groups and
1818 // implicit references from global handles, but don't atomically complete 1820 // implicit references from global handles, but don't atomically complete
1819 // marking. If we continue to mark incrementally, we might have marked 1821 // marking. If we continue to mark incrementally, we might have marked
1820 // objects that die later. 1822 // objects that die later.
1821 void FinalizeIncrementalMarking(const char* gc_reason); 1823 void FinalizeIncrementalMarking(const char* gc_reason);
1822 1824
1823 // Returns the timer used for a given GC type. 1825 // Returns the timer used for a given GC type.
1824 // - GCScavenger: young generation GC 1826 // - GCScavenger: young generation GC
1825 // - GCCompactor: full GC 1827 // - GCCompactor: full GC
1826 // - GCFinalzeMC: finalization of incremental full GC 1828 // - GCFinalzeMC: finalization of incremental full GC
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2737 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2736 2738
2737 private: 2739 private:
2738 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2740 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2739 }; 2741 };
2740 #endif // DEBUG 2742 #endif // DEBUG
2741 } // namespace internal 2743 } // namespace internal
2742 } // namespace v8 2744 } // namespace v8
2743 2745
2744 #endif // V8_HEAP_HEAP_H_ 2746 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698