< prev index next > src/hotspot/share/prims/jvmtiExport.cpp
Print this page
assert(sig_type != JVM_SIGNATURE_ARRAY, "array should have sig_type == 'L'");
bool handle_created = false;
// convert oop to JNI handle.
! if (sig_type == JVM_SIGNATURE_CLASS) {
handle_created = true;
value->l = (jobject)JNIHandles::make_local(thread, cast_to_oop(value->l));
}
post_field_modification(thread, method, location, field_klass, object, field, sig_type, value);
assert(sig_type != JVM_SIGNATURE_ARRAY, "array should have sig_type == 'L'");
bool handle_created = false;
// convert oop to JNI handle.
! if (sig_type == JVM_SIGNATURE_CLASS || sig_type == JVM_SIGNATURE_PRIMITIVE_OBJECT) {
handle_created = true;
value->l = (jobject)JNIHandles::make_local(thread, cast_to_oop(value->l));
}
post_field_modification(thread, method, location, field_klass, object, field, sig_type, value);
< prev index next >