comparison src/share/vm/prims/nativeLookup.cpp @ 10276:f0bc60565ba8

7196277: JSR 292: Two jck/runtime tests crash on java.lang.invoke.MethodHandle.invokeExact Reviewed-by: jrose, kvn
author twisti
date Mon, 06 May 2013 13:53:13 -0700
parents db9981fd3124
children 836a62f43af9 675ffabf3798 bdd155477289
comparison
equal deleted inserted replaced
10275:d73c88e524ff 10276:f0bc60565ba8
381 } 381 }
382 382
383 383
384 address NativeLookup::lookup(methodHandle method, bool& in_base_library, TRAPS) { 384 address NativeLookup::lookup(methodHandle method, bool& in_base_library, TRAPS) {
385 if (!method->has_native_function()) { 385 if (!method->has_native_function()) {
386 address entry = 386 address entry = lookup_base(method, in_base_library, CHECK_NULL);
387 method->intrinsic_id() == vmIntrinsics::_invokeGeneric ?
388 SharedRuntime::native_method_throw_unsupported_operation_exception_entry() :
389 lookup_base(method, in_base_library, CHECK_NULL);
390 method->set_native_function(entry, 387 method->set_native_function(entry,
391 Method::native_bind_event_is_interesting); 388 Method::native_bind_event_is_interesting);
392 // -verbose:jni printing 389 // -verbose:jni printing
393 if (PrintJNIResolving) { 390 if (PrintJNIResolving) {
394 ResourceMark rm(THREAD); 391 ResourceMark rm(THREAD);