[jdk17] RFR: 8269285: Crash/miscompile in CallGenerator::for_method_handle_inline after JDK-8191998 [v4]

Vladimir Ivanov vlivanov at openjdk.java.net
Wed Jun 30 17:17:05 UTC 2021


On Wed, 30 Jun 2021 17:04:44 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/types/TestMethodHandleSpeculation.java line 31:
>> 
>>> 29:  *
>>> 30:  * @run main/othervm
>>> 31:  *        -Xcomp -Xbatch
>> 
>> The test can be sped up significatly by compiling `compiler.types.TestMethodHandleSpeculation::main()` only (`-XX:CompileCommand=quiet -XX:CompileCommand=compileonly,compiler.types.TestMethodHandleSpeculation::main`).
>
> I tried it before with `-XX:CompileOnly=compiler.types.TestMethodHandleSpeculation::*`, and IIRC that did not work. I suspect you need to compile/inline the lambda body too. After all, this is `CallGenerator::for_method_handle_inline`? I can try again.

There's some difference in behavior between `-XX:CompileCommand=compileonly,` and `-XX:CompileOnly=`.
IIRC the former doesn't affect inlining while the latter does.

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

PR: https://git.openjdk.java.net/jdk17/pull/169


More information about the hotspot-compiler-dev mailing list