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

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

Issue 2462613002: [not for landing] Debugging gpu failures
Patch Set: more checks Created 4 years, 1 month 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 | « gypfiles/features.gypi ('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.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index d113221edcde594fc51a59c38d43554793b8196b..ea7897576c4a0db7b0aeeccf0ba0afe8d0f82321 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -647,6 +647,11 @@ void MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) {
CHECK(!p->IsEvacuationCandidate());
CHECK_NULL(p->old_to_old_slots());
CHECK_NULL(p->typed_old_to_old_slots());
+ if (!p->SweepingDone()) {
+ CHECK(!sweeping_in_progress());
+ CHECK(sweeper().IsSweepingCompleted(space->identity()));
+ CHECK(false);
+ }
CHECK(p->SweepingDone());
DCHECK(p->area_size() == area_size);
pages.push_back(std::make_pair(p->LiveBytesFromFreeList(), p));
« no previous file with comments | « gypfiles/features.gypi ('k') | src/heap/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698