Commit 29b61d1c authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

[heap] Guard VerifyCountersAfterSweeping with ifdef DEBUG.

VERIFY_HEAP does not necessarily imply DEBUG.

Bug: chromium:694255
TRB: mlippautz@chromium.org
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I1699288bd9d826ea1d577dd4fc2de81ee450add7
Reviewed-on: https://chromium-review.googlesource.com/618892
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47410}
parent dfc6b4dd
......@@ -1750,7 +1750,9 @@ void PagedSpace::Verify(ObjectVisitor* visitor) {
CHECK_LE(black_size, marking_state->live_bytes(page));
}
CHECK(allocation_pointer_found_in_space);
#ifdef DEBUG
VerifyCountersAfterSweeping();
#endif
}
#endif // VERIFY_HEAP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment