| OLD | NEW |
| 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 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void IterateWeakRoots(Isolate* isolate, | 42 void IterateWeakRoots(Isolate* isolate, |
| 43 HandleVisitor* visitor, | 43 HandleVisitor* visitor, |
| 44 bool visit_prologue_weak_persistent_handles); | 44 bool visit_prologue_weak_persistent_handles); |
| 45 void IterateWeakReferences(Isolate* isolate, MarkingVisitor* visitor); | 45 void IterateWeakReferences(Isolate* isolate, MarkingVisitor* visitor); |
| 46 void ProcessWeakTables(PageSpace* page_space); | 46 void ProcessWeakTables(PageSpace* page_space); |
| 47 void ProcessObjectIdTable(Isolate* isolate); | 47 void ProcessObjectIdTable(Isolate* isolate); |
| 48 | 48 |
| 49 // Called by anyone: finalize and accumulate stats from 'visitor'. | 49 // Called by anyone: finalize and accumulate stats from 'visitor'. |
| 50 void FinalizeResultsFrom(MarkingVisitor* visitor); | 50 void FinalizeResultsFrom(MarkingVisitor* visitor); |
| 51 | 51 |
| 52 Monitor monitor_; // Protects marked_bytes_ and done_count_. | |
| 53 Heap* heap_; | 52 Heap* heap_; |
| 53 |
| 54 Mutex stats_mutex_; |
| 55 // TODO(koda): Remove after verifying it's redundant w.r.t. ClassHeapStats. |
| 54 uintptr_t marked_bytes_; | 56 uintptr_t marked_bytes_; |
| 55 | 57 |
| 56 friend class MarkTask; | 58 friend class MarkTask; |
| 57 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker); | 59 DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker); |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 } // namespace dart | 62 } // namespace dart |
| 61 | 63 |
| 62 #endif // VM_GC_MARKER_H_ | 64 #endif // VM_GC_MARKER_H_ |
| OLD | NEW |