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

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

Issue 2735803005: [heap] Start concurrent marking simultaneously with incremental marking. (Closed)
Patch Set: tweak Created 3 years, 9 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
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 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 1232
1233 void FinalizeIncrementalMarkingIfComplete(GarbageCollectionReason gc_reason); 1233 void FinalizeIncrementalMarkingIfComplete(GarbageCollectionReason gc_reason);
1234 1234
1235 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms, 1235 bool TryFinalizeIdleIncrementalMarking(double idle_time_in_ms,
1236 GarbageCollectionReason gc_reason); 1236 GarbageCollectionReason gc_reason);
1237 1237
1238 void RegisterReservationsForBlackAllocation(Reservation* reservations); 1238 void RegisterReservationsForBlackAllocation(Reservation* reservations);
1239 1239
1240 IncrementalMarking* incremental_marking() { return incremental_marking_; } 1240 IncrementalMarking* incremental_marking() { return incremental_marking_; }
1241 1241
1242 // ===========================================================================
1243 // Concurrent marking API. ===================================================
1244 // ===========================================================================
1245
1246 ConcurrentMarking* concurrent_marking() { return concurrent_marking_; }
1247
1242 // The runtime uses this function to notify potentially unsafe object layout 1248 // The runtime uses this function to notify potentially unsafe object layout
1243 // changes that require special synchronization with the concurrent marker. 1249 // changes that require special synchronization with the concurrent marker.
1244 // A layout change is unsafe if 1250 // A layout change is unsafe if
1245 // - it removes a tagged in-object field. 1251 // - it removes a tagged in-object field.
1246 // - it replaces a tagged in-objects field with an untagged in-object field. 1252 // - it replaces a tagged in-objects field with an untagged in-object field.
1247 void NotifyObjectLayoutChange(HeapObject* object, 1253 void NotifyObjectLayoutChange(HeapObject* object,
1248 const DisallowHeapAllocation&); 1254 const DisallowHeapAllocation&);
1249 #ifdef VERIFY_HEAP 1255 #ifdef VERIFY_HEAP
1250 // This function checks that either 1256 // This function checks that either
1251 // - the map transition is safe, 1257 // - the map transition is safe,
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
2619 friend class LargeObjectSpace; 2625 friend class LargeObjectSpace;
2620 friend class NewSpace; 2626 friend class NewSpace;
2621 friend class PagedSpace; 2627 friend class PagedSpace;
2622 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2623 }; 2629 };
2624 2630
2625 } // namespace internal 2631 } // namespace internal
2626 } // namespace v8 2632 } // namespace v8
2627 2633
2628 #endif // V8_HEAP_HEAP_H_ 2634 #endif // V8_HEAP_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698