Commit 977a2761 authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[heap] Fix DCHECK in UndoLastAllocationAt

Change-Id: I4ec51c8f1a0a9b5d9967898c2e89c9ba82ace6c5
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2997107
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: 's avatarDominik Inführ <dinfuehr@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75485}
parent 5756c40e
......@@ -3415,7 +3415,7 @@ void Heap::RightTrimWeakFixedArray(WeakFixedArray object,
}
void Heap::UndoLastAllocationAt(Address addr, int size) {
DCHECK_LE(size, 0);
DCHECK_LE(0, size);
if (size == 0) return;
if (code_space_->Contains(addr)) {
Address* top = code_space_->allocation_top_address();
......
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