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

Unified Diff: src/heap/heap.h

Issue 2872263002: [heap] Synchronize young generation GC with concurrent marking. (Closed)
Patch Set: add guard in Heap::EvacuateYoungGeneration Created 3 years, 7 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/heap/concurrent-marking.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 808056d00c32f146fe3599f551e9de8ca92f2a14..1e7f69fa9a82feb80824385e96726b78917c9c28 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -590,19 +590,9 @@ class Heap {
enum UpdateAllocationSiteMode { kGlobal, kCached };
- // Taking this lock prevents the GC from entering a phase that relocates
+ // Taking this mutex prevents the GC from entering a phase that relocates
// object references.
- class RelocationLock {
- public:
- explicit RelocationLock(Heap* heap) : heap_(heap) {
- heap_->relocation_mutex_.Lock();
- }
-
- ~RelocationLock() { heap_->relocation_mutex_.Unlock(); }
-
- private:
- Heap* heap_;
- };
+ base::Mutex* relocation_mutex() { return &relocation_mutex_; }
// Support for partial snapshots. After calling this we have a linear
// space to write objects in each space.
« no previous file with comments | « src/heap/concurrent-marking.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698