< prev index next >

src/hotspot/share/prims/jni.cpp

Print this page
rev 55759 : 8227680: FastJNIAccessors: Check for JVMTI field access event requests at runtime
Summary: Check JvmtiExport::_field_access_count != 0 at runtime
Reviewed-by:

*** 3774,3785 **** } } void quicken_jni_functions() { // Replace Get<Primitive>Field with fast versions ! if (UseFastJNIAccessors && !JvmtiExport::can_post_field_access() ! && !VerifyJNIFields && !CountJNICalls && !CheckJNICalls) { address func; func = JNI_FastGetField::generate_fast_get_boolean_field(); if (func != (address)-1) { jni_NativeInterface.GetBooleanField = (GetBooleanField_t)func; } --- 3774,3784 ---- } } void quicken_jni_functions() { // Replace Get<Primitive>Field with fast versions ! if (UseFastJNIAccessors && !VerifyJNIFields && !CountJNICalls && !CheckJNICalls) { address func; func = JNI_FastGetField::generate_fast_get_boolean_field(); if (func != (address)-1) { jni_NativeInterface.GetBooleanField = (GetBooleanField_t)func; }
< prev index next >