< prev index next >

test/compiler/profiling/UnsafeAccess.java

Print this page
rev 12711 : 8181292: Backport Rename internal Unsafe.compare methods from 10 to 9
Reviewed-by: psandoz, dholmes, thartmann
Contributed-by: ron.pressler@oracle.com, claes.redestad@oracle.com

*** 62,72 **** } static Object helperUnsafeLoadStore(Object o, boolean isObjArray) { if (isObjArray) { Object o1 = U.getObject(o, off); ! U.compareAndSwapObject(o, off, o1, new Object()); } return o; } public static void main(String[] args) { --- 62,72 ---- } 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) {
< prev index next >