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

Side by Side Diff: runtime/vm/gc_marker.h

Issue 1459173004: Remove support for object grouping during Garbage Collection (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review Created 5 years, 1 month 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 | « runtime/vm/dart_api_state.h ('k') | runtime/vm/gc_marker.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 (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_GC_MARKER_H_ 5 #ifndef VM_GC_MARKER_H_
6 #define VM_GC_MARKER_H_ 6 #define VM_GC_MARKER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/os_thread.h" // Mutex. 9 #include "vm/os_thread.h" // Mutex.
10 10
(...skipping 20 matching lines...) Expand all
31 bool invoke_api_callbacks, 31 bool invoke_api_callbacks,
32 bool collect_code); 32 bool collect_code);
33 33
34 intptr_t marked_words() { return marked_bytes_ >> kWordSizeLog2; } 34 intptr_t marked_words() { return marked_bytes_ >> kWordSizeLog2; }
35 35
36 private: 36 private:
37 void Prologue(Isolate* isolate, bool invoke_api_callbacks); 37 void Prologue(Isolate* isolate, bool invoke_api_callbacks);
38 void Epilogue(Isolate* isolate, bool invoke_api_callbacks); 38 void Epilogue(Isolate* isolate, bool invoke_api_callbacks);
39 void IterateRoots(Isolate* isolate, 39 void IterateRoots(Isolate* isolate,
40 ObjectPointerVisitor* visitor, 40 ObjectPointerVisitor* visitor,
41 bool visit_prologue_weak_persistent_handles,
42 intptr_t slice_index, intptr_t num_slices); 41 intptr_t slice_index, intptr_t num_slices);
43 void IterateWeakRoots(Isolate* isolate, 42 void IterateWeakRoots(Isolate* isolate, HandleVisitor* visitor);
44 HandleVisitor* visitor,
45 bool visit_prologue_weak_persistent_handles);
46 template<class MarkingVisitorType> 43 template<class MarkingVisitorType>
47 void IterateWeakReferences(Isolate* isolate, MarkingVisitorType* visitor); 44 void IterateWeakReferences(Isolate* isolate, MarkingVisitorType* visitor);
48 void ProcessWeakTables(PageSpace* page_space); 45 void ProcessWeakTables(PageSpace* page_space);
49 void ProcessObjectIdTable(Isolate* isolate); 46 void ProcessObjectIdTable(Isolate* isolate);
50 47
51 // Called by anyone: finalize and accumulate stats from 'visitor'. 48 // Called by anyone: finalize and accumulate stats from 'visitor'.
52 template<class MarkingVisitorType> 49 template<class MarkingVisitorType>
53 void FinalizeResultsFrom(MarkingVisitorType* visitor); 50 void FinalizeResultsFrom(MarkingVisitorType* visitor);
54 51
55 Heap* heap_; 52 Heap* heap_;
56 53
57 Mutex stats_mutex_; 54 Mutex stats_mutex_;
58 // TODO(koda): Remove after verifying it's redundant w.r.t. ClassHeapStats. 55 // TODO(koda): Remove after verifying it's redundant w.r.t. ClassHeapStats.
59 uintptr_t marked_bytes_; 56 uintptr_t marked_bytes_;
60 57
61 friend class MarkTask; 58 friend class MarkTask;
62 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker); 59 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker);
63 }; 60 };
64 61
65 } // namespace dart 62 } // namespace dart
66 63
67 #endif // VM_GC_MARKER_H_ 64 #endif // VM_GC_MARKER_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_state.h ('k') | runtime/vm/gc_marker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698