changeset 220:ca8b9d9c06b7

Remove obsolete Unsafe.fieldOffset() method.
author shade
date Fri, 17 Apr 2015 12:26:31 +0300
parents 2c43cdee5309
children 07af6b67cd23
files jcstress-core/src/main/java/sun/misc/Unsafe.java tests-custom/src/main/java/org/openjdk/jcstress/tests/interrupt/UnsafeBusyLoopTest.java
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-core/src/main/java/sun/misc/Unsafe.java	Thu Apr 16 16:59:42 2015 +0300
+++ b/jcstress-core/src/main/java/sun/misc/Unsafe.java	Fri Apr 17 12:26:31 2015 +0300
@@ -140,8 +140,6 @@
 
     public abstract void freeMemory(long address);
 
-    public abstract int fieldOffset(Field f);
-
     public abstract Object staticFieldBase(Class<?> c);
 
     public abstract long staticFieldOffset(Field f);
--- a/tests-custom/src/main/java/org/openjdk/jcstress/tests/interrupt/UnsafeBusyLoopTest.java	Thu Apr 16 16:59:42 2015 +0300
+++ b/tests-custom/src/main/java/org/openjdk/jcstress/tests/interrupt/UnsafeBusyLoopTest.java	Fri Apr 17 12:26:31 2015 +0300
@@ -44,7 +44,7 @@
 
     static {
         try {
-            offset = UnsafeHolder.U.fieldOffset(UnsafeBusyLoopTest.class.getDeclaredField("isStopped"));
+            offset = UnsafeHolder.U.objectFieldOffset(UnsafeBusyLoopTest.class.getDeclaredField("isStopped"));
         } catch (NoSuchFieldException e) {
             throw new IllegalStateException(e);
         }