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

Unified Diff: src/heap/incremental-marking.cc

Issue 2737483002: [heap] Remove Marking::BlackToWhite and Marking::GreyToWhite. (Closed)
Patch Set: 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 | « no previous file | src/heap/marking.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/incremental-marking.cc
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc
index b8ab1e926b85df7cf84073bbd7f4f9eca3cb8098..437cf12b256d510586a5daaf4c3806024e154987 100644
--- a/src/heap/incremental-marking.cc
+++ b/src/heap/incremental-marking.cc
@@ -143,11 +143,11 @@ void IncrementalMarking::TransferMark(Heap* heap, HeapObject* from,
#endif
if (Marking::IsBlack(old_mark_bit)) {
- Marking::BlackToWhite(old_mark_bit);
+ Marking::MarkWhite(old_mark_bit);
Marking::WhiteToBlack(new_mark_bit);
return;
} else if (Marking::IsGrey(old_mark_bit)) {
- Marking::GreyToWhite(old_mark_bit);
+ Marking::MarkWhite(old_mark_bit);
Marking::WhiteToGrey(new_mark_bit);
heap->mark_compact_collector()->marking_deque()->Push(to);
heap->incremental_marking()->RestartIfNotMarking();
« no previous file with comments | « no previous file | src/heap/marking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698