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

Unified Diff: src/heap/concurrent-marking.h

Issue 2735803005: [heap] Start concurrent marking simultaneously with incremental marking. (Closed)
Patch Set: fix test Created 3 years, 8 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 | « src/globals.h ('k') | src/heap/concurrent-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/concurrent-marking.h
diff --git a/src/heap/concurrent-marking.h b/src/heap/concurrent-marking.h
index 70842cd230d01c13810026bd5c28f4c6a0aa2c1a..9d7b6b58caa2ceda29bd723e5f6cb41942f179f2 100644
--- a/src/heap/concurrent-marking.h
+++ b/src/heap/concurrent-marking.h
@@ -25,13 +25,16 @@ class ConcurrentMarking {
void AddRoot(HeapObject* object);
- void StartMarkingTask();
+ void StartTask();
void WaitForTaskToComplete();
+ bool IsTaskPending() { return is_task_pending_; }
+ void EnsureTaskCompleted();
private:
class Task;
Heap* heap_;
- base::Semaphore pending_task_;
+ base::Semaphore pending_task_semaphore_;
+ bool is_task_pending_;
std::vector<HeapObject*> root_set_;
};
« no previous file with comments | « src/globals.h ('k') | src/heap/concurrent-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698