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

Unified Diff: src/mark-compact.h

Issue 7867040: Reduce imprecision of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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
Index: src/mark-compact.h
diff --git a/src/mark-compact.h b/src/mark-compact.h
index 4efd60553f8ed147ca3e0ffa45fdc4ba8e1a368f..2ab820d3f4177cc202c269ea289d0ba0387b8cbf 100644
--- a/src/mark-compact.h
+++ b/src/mark-compact.h
@@ -119,6 +119,12 @@ class Marking {
BlackToGrey(MarkBitFrom(obj));
}
+ static inline void AnyToGrey(MarkBit markbit) {
+ markbit.Set();
+ markbit.Next().Set();
+ ASSERT(IsGrey(markbit));
+ }
+
// Returns true if the the object whose mark is transferred is marked black.
bool TransferMark(Address old_start, Address new_start);

Powered by Google App Engine
This is Rietveld 408576698