equal
deleted
inserted
replaced
717 if (must_be_static != really_is_static) { |
717 if (must_be_static != really_is_static) { |
718 THROW_0(vmSymbols::java_lang_IllegalArgumentException()); |
718 THROW_0(vmSymbols::java_lang_IllegalArgumentException()); |
719 } |
719 } |
720 } |
720 } |
721 |
721 |
722 int offset = instanceKlass::cast(k)->offset_from_fields(slot); |
722 int offset = instanceKlass::cast(k)->field_offset(slot); |
723 return field_offset_from_byte_offset(offset); |
723 return field_offset_from_byte_offset(offset); |
724 } |
724 } |
725 |
725 |
726 UNSAFE_ENTRY(jlong, Unsafe_ObjectFieldOffset(JNIEnv *env, jobject unsafe, jobject field)) |
726 UNSAFE_ENTRY(jlong, Unsafe_ObjectFieldOffset(JNIEnv *env, jobject unsafe, jobject field)) |
727 UnsafeWrapper("Unsafe_ObjectFieldOffset"); |
727 UnsafeWrapper("Unsafe_ObjectFieldOffset"); |