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

Unified Diff: src/heap/mark-compact.h

Issue 2836583002: [heap] Allow concurrently transferring colors (Closed)
Patch Set: 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/heap/incremental-marking.h ('k') | src/heap/spaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index 63afd834ea1e31f184d3bd70e233c6e2736a8ea5..00620423fa689ef66d541c3ad5dcb6904e418916 100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -80,7 +80,7 @@ class ObjectMarking : public AllStatic {
(access_mode == MarkBit::ATOMIC || IsBlack<access_mode>(obj, state)));
MarkBit markbit = MarkBitFrom(obj, state);
if (!Marking::BlackToGrey<access_mode>(markbit)) return false;
- state.IncrementLiveBytes(-obj->Size());
+ state.IncrementLiveBytes<access_mode>(-obj->Size());
return true;
}
@@ -107,7 +107,7 @@ class ObjectMarking : public AllStatic {
DCHECK((access_mode == MarkBit::ATOMIC || IsGrey<access_mode>(obj, state)));
MarkBit markbit = MarkBitFrom(obj, state);
if (!Marking::GreyToBlack<access_mode>(markbit)) return false;
- state.IncrementLiveBytes(obj->Size());
+ state.IncrementLiveBytes<access_mode>(obj->Size());
return true;
}
« no previous file with comments | « src/heap/incremental-marking.h ('k') | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698