RFR: 8256485: Zero VM build broken after JDK-8254231 [v2]

Jorn Vernee jvernee at openjdk.java.net
Mon Nov 23 13:14:59 UTC 2020


On Mon, 23 Nov 2020 13:05:42 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Rename foreign_globals_zero.hpp include guard
>
> src/hotspot/cpu/zero/methodHandles_zero.cpp line 211:
> 
>> 209:   case vmIntrinsics::_invokeGeneric:
>> 210:   case vmIntrinsics::_compiledLambdaForm:
>> 211:   case vmIntrinsics::_linkToNative:
> 
> Sorry, another issue. What is this? Do we need this to compile Zero? Does it even make sense to have it for `method_handle_entry`?

This function gets called during the build. If the case for linkToNative is not added it falls through to ShouldNotReachHere() in the default case.

Pointing it to method_handle_entry_invalid seemed like the best way to fix it, since the interpreter entry never gets used any ways. See method.cpp:

  if (iid == vmIntrinsics::_linkToNative) {
    m->set_interpreter_entry(m->adapter()->get_i2c_entry());
  }

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

PR: https://git.openjdk.java.net/jdk/pull/1265


More information about the hotspot-runtime-dev mailing list