RFR: 8330806: test/hotspot/jtreg/compiler/c1/TestLargeMonitorOffset.java fails on ARM32
Sergey Nazarkin
snazarki at openjdk.org
Fri Apr 26 15:26:52 UTC 2024
On Mon, 22 Apr 2024 14:21:09 GMT, Aleksei Voitylov <avoitylov at openjdk.org> wrote:
> TestLargeMonitorOffset was introduced by 8310844 with a fix for the AArch64 platform. The same issue needs to be fixed for ARM32. With this change, we add the large slot_offset handling to the ARM32 version of IR_Assembler::osr_entry().
>
> Testing: jtreg hotspot, jtreg jdk tier1-3.
src/hotspot/cpu/arm/c1_LIRAssembler_arm.cpp line 156:
> 154: int slot_offset = monitor_offset - (i * 2 * BytesPerWord);
> 155: if (slot_offset >= 4096 - BytesPerWord) {
> 156: __ add_slow(R2, OSR_buf, slot_offset);
Can't we check this once before the loop? Or does such an optimization make no sense?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18891#discussion_r1581190935
More information about the hotspot-compiler-dev
mailing list