# HG changeset patch # User Doug Simon # Date 1417085996 -3600 # Node ID 37d88a4af2abb180a7ebdc2d10a5f4822cbf52b3 # Parent 3566e1edb3b4cceb3e74cb7c2dc74d95d4a6108a removed references to HotSpotGraalRuntime.unsafeReadWord() diff -r 3566e1edb3b4 -r 37d88a4af2ab graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotMethodData.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotMethodData.java Thu Nov 27 11:51:17 2014 +0100 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotMethodData.java Thu Nov 27 11:59:56 2014 +0100 @@ -28,6 +28,8 @@ import java.util.*; +import sun.misc.*; + import com.oracle.graal.api.meta.*; import com.oracle.graal.api.meta.JavaMethodProfile.ProfiledMethod; import com.oracle.graal.api.meta.JavaTypeProfile.ProfiledType; @@ -171,8 +173,7 @@ /** * Since the values are stored in cells (platform words) this method uses - * {@link HotSpotGraalRuntime#unsafeReadWord} to read the right value on both little and big - * endian machines. + * {@link Unsafe#getAddress} to read the right value on both little and big endian machines. */ private long readUnsignedInt(int position, int offsetInBytes) { long fullOffsetInBytes = computeFullOffset(position, offsetInBytes); @@ -186,8 +187,7 @@ /** * Since the values are stored in cells (platform words) this method uses - * {@link HotSpotGraalRuntime#unsafeReadWord} to read the right value on both little and big - * endian machines. + * {@link Unsafe#getAddress} to read the right value on both little and big endian machines. */ private int readInt(int position, int offsetInBytes) { long fullOffsetInBytes = computeFullOffset(position, offsetInBytes);