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

Unified Diff: src/heap/marking.h

Issue 2731363002: [heap] Do not clear mark bits of left trimmed old object start. (Closed)
Patch Set: comment fix Created 3 years, 9 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/mark-compact-inl.h ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/marking.h
diff --git a/src/heap/marking.h b/src/heap/marking.h
index b8396b7f0b243f9036956761446571a2166dd727..3c217454892ecf87c2ec92a20b5b1d76d298b0f1 100644
--- a/src/heap/marking.h
+++ b/src/heap/marking.h
@@ -303,6 +303,13 @@ class Marking : public AllStatic {
markbit.Next().Clear();
}
+ INLINE(static void MarkGrey(MarkBit markbit)) { markbit.Set(); }
+
+ INLINE(static void MarkBlack(MarkBit markbit)) {
+ markbit.Set();
+ markbit.Next().Set();
+ }
+
INLINE(static void BlackToGrey(MarkBit markbit)) {
DCHECK(IsBlack(markbit));
markbit.Next().Clear();
« no previous file with comments | « src/heap/mark-compact-inl.h ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698