From a4e39d6b17bf053f912c29652d5f4ba9a46bef3f Mon Sep 17 00:00:00 2001 From: Richard Reingruber Date: Fri, 24 Jul 2026 14:27:08 +0000 Subject: [PATCH] 8388443: C2: Assertion in PhaseRegAlloc::reg2offset() is too strict Reviewed-by: mbaesken, goetz --- src/hotspot/share/opto/regalloc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hotspot/share/opto/regalloc.cpp b/src/hotspot/share/opto/regalloc.cpp index 644296715f5..b05a2f3cc6b 100644 --- a/src/hotspot/share/opto/regalloc.cpp +++ b/src/hotspot/share/opto/regalloc.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2026, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -79,7 +79,7 @@ int PhaseRegAlloc::reg2offset( OptoReg::Name reg ) const { reg < _matcher._in_arg_limit) || reg >= OptoReg::add(_matcher._new_SP, C->out_preserve_stack_slots()) || // Allow return_addr in the out-preserve area. - reg == _matcher.return_addr(), + reg == _matcher.return_addr() LP64_ONLY(|| OptoReg::add(reg, -1) == _matcher.return_addr()), "register allocated in a preserve area" ); return reg2offset_unchecked( reg ); }