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