RFR: 8357514: Disable AOT caching for runtime stubs [v2]
Vladimir Kozlov
kvn at openjdk.org
Thu May 22 04:56:37 UTC 2025
> After [JDK-8354887](https://bugs.openjdk.org/browse/JDK-8354887) was integrated we hit strange failures which looks like memory stomps during our JCK testing of AOT new JEPs:
>
> # Internal Error (/workspace/open/src/hotspot/share/opto/regmask.hpp:222), pid=4186624, tid=4186658
> # assert(_RM_UP[i] == 0) failed: _hwm too low: 5 regs at: 4
>
> or
>
> # Internal Error (/workspace/open/src/hotspot/share/opto/type.cpp:996), pid=2832821, tid=2832868
> # fatal error: meet not symmetric
>
> or other strange issues during C2 compilation
>
> After investigating (running tests in loop) I narrowed down the issue to AOT caching of C2 runtime stubs:
>
> https://github.com/openjdk/jdk/blob/master/src/hotspot/share/opto/output.cpp#L3491
>
> After internal discussion we decided disable all runtime stubs caching.
> There is no guarantee that we may not have issues with C1 stubs too.
>
> I propose hard code AOTStubCaching flag to `false` value until the issue is solved.
Vladimir Kozlov has updated the pull request incrementally with one additional commit since the last revision:
Address comment
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25379/files
- new: https://git.openjdk.org/jdk/pull/25379/files/a375393d..e238ffb1
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25379&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25379&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/25379.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25379/head:pull/25379
PR: https://git.openjdk.org/jdk/pull/25379
More information about the hotspot-compiler-dev
mailing list