mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +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
|
@ -383,10 +383,7 @@ address NativeLookup::lookup_base(methodHandle method, bool& in_base_library, TR
|
|||
|
||||
address NativeLookup::lookup(methodHandle method, bool& in_base_library, TRAPS) {
|
||||
if (!method->has_native_function()) {
|
||||
address entry =
|
||||
method->intrinsic_id() == vmIntrinsics::_invokeGeneric ?
|
||||
SharedRuntime::native_method_throw_unsupported_operation_exception_entry() :
|
||||
lookup_base(method, in_base_library, CHECK_NULL);
|
||||
address entry = lookup_base(method, in_base_library, CHECK_NULL);
|
||||
method->set_native_function(entry,
|
||||
Method::native_bind_event_is_interesting);
|
||||
// -verbose:jni printing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue