< prev index next >
test/hotspot/jtreg/compiler/profiling/UnsafeAccess.java
Print this page
@@ -47,11 +47,11 @@
return null;
}
static Object helperUnsafeAccess(Object o, boolean isObjArray) {
if (isObjArray) {
- U.putObject(o, off, new Object());
+ U.putReference(o, off, new Object());
}
return o;
}
static Object testUnsafeLoadStore(Object o, boolean isObjArray) {
@@ -61,12 +61,12 @@
return null;
}
static Object helperUnsafeLoadStore(Object o, boolean isObjArray) {
if (isObjArray) {
- Object o1 = U.getObject(o, off);
- U.compareAndSetObject(o, off, o1, new Object());
+ Object o1 = U.getReference(o, off);
+ U.compareAndSetReference(o, off, o1, new Object());
}
return o;
}
public static void main(String[] args) {
< prev index next >