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

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

Issue 2863953002: Revert of [heap] Reland "Make non-atomic markbit operations consistent with atomic ones." (Closed)
Patch Set: 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/mark-compact.cc ('k') | src/heap/marking.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/mark-compact-inl.h
diff --git a/src/heap/mark-compact-inl.h b/src/heap/mark-compact-inl.h
index 584f86dc8819513643dc56dfae03751e55e747e9..cb280e2bbb0dc9a179c29d59511fddc0b5610044 100644
--- a/src/heap/mark-compact-inl.h
+++ b/src/heap/mark-compact-inl.h
@@ -38,15 +38,19 @@
}
void MarkCompactCollector::MarkObject(HeapObject* obj) {
- if (ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>(
+ if (ObjectMarking::IsWhite<MarkBit::NON_ATOMIC>(
obj, MarkingState::Internal(obj))) {
+ ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>(
+ obj, MarkingState::Internal(obj));
PushBlack(obj);
}
}
void MinorMarkCompactCollector::MarkObject(HeapObject* obj) {
- if (ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>(
+ if (ObjectMarking::IsWhite<MarkBit::NON_ATOMIC>(
obj, MarkingState::External(obj))) {
+ ObjectMarking::WhiteToBlack<MarkBit::NON_ATOMIC>(
+ obj, MarkingState::External(obj));
PushBlack(obj);
}
}
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/heap/marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698