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

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

Issue 1346333003: Make old-space heap stats safe for parallel marking. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix count. Created 5 years, 3 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 | « runtime/vm/class_table.cc ('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 9
10 namespace dart { 10 namespace dart {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « runtime/vm/class_table.cc ('k') | runtime/vm/gc_marker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698