mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
7196277: JSR 292: Two jck/runtime tests crash on java.lang.invoke.MethodHandle.invokeExact
Reviewed-by: jrose, kvn
This commit is contained in:
parent
1763afaec5
commit
149097fbb7
4 changed files with 69 additions and 26 deletions
|
@ -832,7 +832,9 @@ void Method::link_method(methodHandle h_method, TRAPS) {
|
|||
assert(entry != NULL, "interpreter entry must be non-null");
|
||||
// Sets both _i2i_entry and _from_interpreted_entry
|
||||
set_interpreter_entry(entry);
|
||||
if (is_native() && !is_method_handle_intrinsic()) {
|
||||
|
||||
// Don't overwrite already registered native entries.
|
||||
if (is_native() && !has_native_function()) {
|
||||
set_native_function(
|
||||
SharedRuntime::native_method_throw_unsatisfied_link_error_entry(),
|
||||
!native_bind_event_is_interesting);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue