< prev index next >

test/java/lang/invoke/VarHandles/VarHandleTestAccessDouble.java

Print this page

        

@@ -102,11 +102,10 @@
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_SET));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE_VOLATILE));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE_ACQUIRE));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE_RELEASE));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.WEAK_COMPARE_AND_SET));
-        assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.WEAK_COMPARE_AND_SET_VOLATILE));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.WEAK_COMPARE_AND_SET_ACQUIRE));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.WEAK_COMPARE_AND_SET_RELEASE));
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_SET));
 
         assertFalse(vh.isAccessModeSupported(VarHandle.AccessMode.GET_AND_ADD));

@@ -279,14 +278,10 @@
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSet(recv, 1.0d, 2.0d);
         });
 
         checkUOE(() -> {
-            boolean r = vh.weakCompareAndSetVolatile(recv, 1.0d, 2.0d);
-        });
-
-        checkUOE(() -> {
             boolean r = vh.weakCompareAndSetAcquire(recv, 1.0d, 2.0d);
         });
 
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSetRelease(recv, 1.0d, 2.0d);

@@ -365,14 +360,10 @@
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSet(1.0d, 2.0d);
         });
 
         checkUOE(() -> {
-            boolean r = vh.weakCompareAndSetVolatile(1.0d, 2.0d);
-        });
-
-        checkUOE(() -> {
             boolean r = vh.weakCompareAndSetAcquire(1.0d, 2.0d);
         });
 
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSetRelease(1.0d, 2.0d);

@@ -441,14 +432,10 @@
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSet(recv, 1.0d, 2.0d);
         });
 
         checkUOE(() -> {
-            boolean r = vh.weakCompareAndSetVolatile(recv, 1.0d, 2.0d);
-        });
-
-        checkUOE(() -> {
             boolean r = vh.weakCompareAndSetAcquire(recv, 1.0d, 2.0d);
         });
 
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSetRelease(recv, 1.0d, 2.0d);

@@ -517,14 +504,10 @@
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSet(1.0d, 2.0d);
         });
 
         checkUOE(() -> {
-            boolean r = vh.weakCompareAndSetVolatile(1.0d, 2.0d);
-        });
-
-        checkUOE(() -> {
             boolean r = vh.weakCompareAndSetAcquire(1.0d, 2.0d);
         });
 
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSetRelease(1.0d, 2.0d);

@@ -600,14 +583,10 @@
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSet(array, i, 1.0d, 2.0d);
         });
 
         checkUOE(() -> {
-            boolean r = vh.weakCompareAndSetVolatile(array, i, 1.0d, 2.0d);
-        });
-
-        checkUOE(() -> {
             boolean r = vh.weakCompareAndSetAcquire(array, i, 1.0d, 2.0d);
         });
 
         checkUOE(() -> {
             boolean r = vh.weakCompareAndSetRelease(array, i, 1.0d, 2.0d);
< prev index next >