Running compiler/intrinsics/TestIntegerUnsignedDivMod.java with '-Xcomp -XX:TieredStopAtLevel=1 -XX:+DeoptimizeALot -XX:+VerifyStack' triggers the following failure:
DEOPT PACKING thread=0x00007ffb3002be60 vframeArray=0x00007ffb304c9c20
Deoptimized frame (sp=0x00007ffb36410280 unextended sp=0x00007ffb36410280, fp=0x00007ffb36410848, real_fp=0x00007ffb36410370, pc=0x00007ffb2dd6a277)
nmethod 39602 3890 ! 1 compiler.intrinsics.TestIntegerUnsignedDivMod::testDivModUnsigned (44 bytes)
Virtual frames (innermost/newest first):
VFrame 0 (0x00007ffb304f0660) - java.lang.Integer.divideUnsigned(II)I - ldiv @ bci=8
VFrame 1 (0x00007ffb304f1a00) - compiler.intrinsics.TestIntegerUnsignedDivMod.divmod(III)V - invokestatic @ bci=7
VFrame 2 (0x00007ffb304f2d48) - compiler.intrinsics.TestIntegerUnsignedDivMod.testDivModUnsigned()V - invokevirtual @ bci=24
Deoptimizing method containing inlining
DEOPT UNPACKING thread=0x00007ffb3002be60 vframeArray=0x00007ffb304c9c20 mode=1
Virtual frames (outermost/oldest first):
VFrame 2 (0x00007ffb304cafe0) - compiler.intrinsics.TestIntegerUnsignedDivMod.testDivModUnsigned()V - invokevirtual @ bci=24 sp=0x00007ffb364102e0
VFrame 1 (0x00007ffb304caf70) - compiler.intrinsics.TestIntegerUnsignedDivMod.divmod(III)V - invokestatic @ bci=7 sp=0x00007ffb36410278
VFrame 0 (0x00007ffb304caf00) - java.lang.Integer.divideUnsigned(II)I - ldiv @ bci=8 sp=0x00007ffb36410220
overlapping storage
0x00007ffb36410280: 0x0000000000000000 stack 0
0x00007ffb36410280: 0x0000000000000000 local 0
overlapping storage
0x00007ffb36410278: 0x0000000000000000 stack 1
0x00007ffb36410278: 0x0000000000000000 local 1
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/workspace/open/src/hotspot/share/runtime/frame.cpp:1574), pid=1408068, tid=1408069
# assert(!error) failed: invalid layout
#
# JRE version: Java(TM) SE Runtime Environment (22.0+16) (fastdebug build 22-ea+16-1189)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-ea+16-1189, compiled mode, emulated-client, sharing, tiered, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xc0716c] FrameValues::validate()+0x1cc
Stack: [0x00007fb622e16000,0x00007fb622f17000], sp=0x00007fb622f11da0, free space=1007k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xc0716c] FrameValues::validate()+0x1cc (frame.cpp:1574)
V [libjvm.so+0xec2a11] JavaThread::print_frame_layout(int, bool)+0x121 (javaThread.cpp:1903)
V [libjvm.so+0xad6374] Deoptimization::unpack_frames(JavaThread*, int)+0x194 (javaThread.hpp:959)
v ~DeoptimizationBlob 0x00007fb61cb6a906
j java.lang.Integer.divideUnsigned(II)I+8 java.base@22-ea
j compiler.intrinsics.TestIntegerUnsignedDivMod.divmod(III)V+7
j compiler.intrinsics.TestIntegerUnsignedDivMod.testDivModUnsigned()V+24