changeset 18574:37d88a4af2ab

removed references to HotSpotGraalRuntime.unsafeReadWord()
author Doug Simon <doug.simon@oracle.com>
date Thu, 27 Nov 2014 11:59:56 +0100
parents 3566e1edb3b4
children 351cc8ee5e3f
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotMethodData.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);