--- a/jdk/test/java/lang/invoke/VarHandles/VarHandleTestByteArrayAsInt.java Mon Jun 20 17:57:19 2016 +0200
+++ b/jdk/test/java/lang/invoke/VarHandles/VarHandleTestByteArrayAsInt.java Thu Jun 23 13:46:48 2016 +0200
@@ -89,7 +89,7 @@
assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.SET_OPAQUE));
assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_SET));
- assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE_VOLATILE));
+ assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE));
assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE_ACQUIRE));
assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.COMPARE_AND_EXCHANGE_RELEASE));
assertTrue(vh.isAccessModeSupported(VarHandle.AccessMode.WEAK_COMPARE_AND_SET));
@@ -217,7 +217,7 @@
});
checkROBE(() -> {
- int r = (int) vh.compareAndExchangeVolatile(array, ci, VALUE_2, VALUE_1);
+ int r = (int) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1);
});
checkROBE(() -> {
@@ -307,7 +307,7 @@
});
checkIOOBE(() -> {
- int r = (int) vh.compareAndExchangeVolatile(array, ci, VALUE_2, VALUE_1);
+ int r = (int) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1);
});
checkIOOBE(() -> {
@@ -399,7 +399,7 @@
});
checkIOOBE(() -> {
- int r = (int) vh.compareAndExchangeVolatile(array, ci, VALUE_2, VALUE_1);
+ int r = (int) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1);
});
checkIOOBE(() -> {
@@ -482,7 +482,7 @@
});
checkISE(() -> {
- int r = (int) vh.compareAndExchangeVolatile(array, ci, VALUE_2, VALUE_1);
+ int r = (int) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1);
});
checkISE(() -> {
@@ -568,7 +568,7 @@
});
checkISE(() -> {
- int r = (int) vh.compareAndExchangeVolatile(array, ci, VALUE_2, VALUE_1);
+ int r = (int) vh.compareAndExchange(array, ci, VALUE_2, VALUE_1);
});
checkISE(() -> {
@@ -670,17 +670,17 @@
}
{
- int r = (int) vh.compareAndExchangeVolatile(array, i, VALUE_2, VALUE_1);
- assertEquals(r, VALUE_2, "success compareAndExchangeVolatile int");
+ int r = (int) vh.compareAndExchange(array, i, VALUE_2, VALUE_1);
+ assertEquals(r, VALUE_2, "success compareAndExchange int");
int x = (int) vh.get(array, i);
- assertEquals(x, VALUE_1, "success compareAndExchangeVolatile int value");
+ assertEquals(x, VALUE_1, "success compareAndExchange int value");
}
{
- int r = (int) vh.compareAndExchangeVolatile(array, i, VALUE_2, VALUE_3);
- assertEquals(r, VALUE_1, "failing compareAndExchangeVolatile int");
+ int r = (int) vh.compareAndExchange(array, i, VALUE_2, VALUE_3);
+ assertEquals(r, VALUE_1, "failing compareAndExchange int");
int x = (int) vh.get(array, i);
- assertEquals(x, VALUE_1, "failing compareAndExchangeVolatile int value");
+ assertEquals(x, VALUE_1, "failing compareAndExchange int value");
}
{
@@ -828,17 +828,17 @@
}
{
- int r = (int) vh.compareAndExchangeVolatile(array, i, VALUE_2, VALUE_1);
- assertEquals(r, VALUE_2, "success compareAndExchangeVolatile int");
+ int r = (int) vh.compareAndExchange(array, i, VALUE_2, VALUE_1);
+ assertEquals(r, VALUE_2, "success compareAndExchange int");
int x = (int) vh.get(array, i);
- assertEquals(x, VALUE_1, "success compareAndExchangeVolatile int value");
+ assertEquals(x, VALUE_1, "success compareAndExchange int value");
}
{
- int r = (int) vh.compareAndExchangeVolatile(array, i, VALUE_2, VALUE_3);
- assertEquals(r, VALUE_1, "failing compareAndExchangeVolatile int");
+ int r = (int) vh.compareAndExchange(array, i, VALUE_2, VALUE_3);
+ assertEquals(r, VALUE_1, "failing compareAndExchange int");
int x = (int) vh.get(array, i);
- assertEquals(x, VALUE_1, "failing compareAndExchangeVolatile int value");
+ assertEquals(x, VALUE_1, "failing compareAndExchange int value");
}
{