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

Vladimir Ivanov vlivanov at openjdk.java.net
Wed Jun 30 13:55:02 UTC 2021


On Wed, 30 Jun 2021 13:30:09 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Not sure what safety concerns you have in mind w.r.t interfaces. On bytecode level interface treatment is lax (e.g., verifier ignores interface type info; see JVMS-4.10.1.2 for details).
>
> I am mostly concerned about pushing a "less than obvious and wider than definitely required" fix to JDK 17. Filtering out by "empty join type" is quite probably too wide. Filtering out the interface arguments is much less obvious. Yes, I get that interface arguments in signatures might be filtered wholesale, but I would rather wait for more testing to see if that actually works.

Frankly speaking, I wouldn't expect too much from testing considering the problem went unnoticed for 2,5 years.

But, as an additional data point, I'd like to reiterate that the fix for JDK-8268371 applied a similar strategy in a much more common scenario - inlining of interface methods - and so far there were no problems spotted.

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

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


More information about the hotspot-compiler-dev mailing list