RFR: 8327741: JVM crash in hotspot/share/opto/compile.cpp - failed: missing inlining msg

Vladimir Ivanov vlivanov at openjdk.org
Tue Apr 9 19:06:59 UTC 2024


On Tue, 9 Apr 2024 09:48:54 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> The crash occurs when a virtual call is devirtualized late. Inlining
> is not attempted then. So no new inlining diagnostic message is
> produced which causes the assert failure. There's some valuable
> information that can be reported though (the call is
> devirtualized).

test/hotspot/jtreg/compiler/print/TestPrintInliningLateVirtualCall.java line 28:

> 26:  * @bug 8327741
> 27:  * @summary JVM crash in hotspot/share/opto/compile.cpp - failed: missing inlining msg
> 28:  * @run main/othervm -XX:-BackgroundCompilation -XX:+PrintCompilation -XX:+PrintInlining TestPrintInliningLateVirtualCall

The test misses `-XX:+UnlockDiagnosticVMOptions` flag:

Error: VM option 'PrintInlining' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.
Error: The unlock option must precede 'PrintInlining'.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18685#discussion_r1558155155


More information about the hotspot-compiler-dev mailing list