hotspot/src/share/vm/prims/unsafe.cpp
changeset 10546 e79347eebbc5
parent 10510 ab626d1bdf53
child 10739 91935236600e
equal deleted inserted replaced
10545:fec876499aae 10546:e79347eebbc5
   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");