Skip to content

Commit 30c0047

Browse files
victorgomesV8 LUCI CQ
authored andcommitted
[arm64] Use CHECK (instead of DCHECK) in CheckVeennerPool
This is a hardening measure to prevent potential data corruption by crashing immediately if the invariant is ever violated in release mode. Bug: 435640828 Change-Id: Idc10542a68d52747aa1e8500ae3ef3a2cf138330 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7014092 Auto-Submit: Victor Gomes <[email protected]> Commit-Queue: Victor Gomes <[email protected]> Reviewed-by: Anton Bikineev <[email protected]> Cr-Commit-Position: refs/heads/main@{#102961}
1 parent 1dcb77f commit 30c0047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/arm64/assembler-arm64.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4968,7 +4968,7 @@ void Assembler::CheckVeneerPool(bool force_emit, bool require_jump,
49684968
return;
49694969
}
49704970

4971-
DCHECK(pc_offset() < unresolved_branches_first_limit());
4971+
CHECK_LT(pc_offset(), unresolved_branches_first_limit());
49724972

49734973
// Some short sequence of instruction mustn't be broken up by veneer pool
49744974
// emission, such sequences are protected by calls to BlockVeneerPoolFor and

0 commit comments

Comments
 (0)