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

Unified Diff: runtime/vm/gc_marker.h

Issue 1337943004: Add ThreadBarrier; use in GCMarker and unit test (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix git again. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/gc_marker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.h
diff --git a/runtime/vm/gc_marker.h b/runtime/vm/gc_marker.h
index 87fed84feff0c327c3b5d7af13ef1186db014825..fb0b85d4c3989a7c6ac0c5b260893b43acbe9794 100644
--- a/runtime/vm/gc_marker.h
+++ b/runtime/vm/gc_marker.h
@@ -23,7 +23,7 @@ class RawWeakProperty;
class GCMarker : public ValueObject {
public:
explicit GCMarker(Heap* heap)
- : heap_(heap), marked_bytes_(0), done_count_(0) { }
+ : heap_(heap), marked_bytes_(0) { }
~GCMarker() { }
void MarkObjects(Isolate* isolate,
@@ -46,20 +46,12 @@ class GCMarker : public ValueObject {
void ProcessWeakTables(PageSpace* page_space);
void ProcessObjectIdTable(Isolate* isolate);
- // Synchronization between GCMarker's main thread and its marking tasks.
- // Called by main thread: wait for 'num_tasks' tasks, then let them resume.
- void MainSync(intptr_t num_tasks);
- // Called by tasks: notify main thread; wait until it lets us continue.
- void TaskSync();
- // Called by tasks: notify main thread, but don't wait (used for exiting).
- void TaskNotifyDone();
// Called by anyone: finalize and accumulate stats from 'visitor'.
void FinalizeResultsFrom(MarkingVisitor* visitor);
Monitor monitor_; // Protects marked_bytes_ and done_count_.
Heap* heap_;
uintptr_t marked_bytes_;
- intptr_t done_count_;
friend class MarkTask;
DISALLOW_IMPLICIT_CONSTRUCTORS(GCMarker);
« no previous file with comments | « no previous file | runtime/vm/gc_marker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698