changeset 309:f06e9cce30bc

Chapter 1.b: Fixup after compareAndExchangeVolatile -> compareAndExchange rename.
author shade
date Thu, 21 Jul 2016 00:28:16 +0300
parents 6faec60f9c90
children a6d41e7168f1
files jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter1bTestGenerator.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter1bTestGenerator.java	Wed Jul 20 12:08:00 2016 +0300
+++ b/jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter1bTestGenerator.java	Thu Jul 21 00:28:16 2016 +0300
@@ -496,7 +496,7 @@
             ),
 
             COMPAREANDEXCHANGEVOLATILE_SUC(
-                    "vh.compareAndExchangeVolatile(\\$object\\$\\$index_para\\$, \\$valueLiteral0\\$, $1);",
+                    "vh.compareAndExchange(\\$object\\$\\$index_para\\$, \\$valueLiteral0\\$, $1);",
                     CompareAndExchangeVolatile
             ),
 
@@ -561,7 +561,7 @@
             ),
 
             COMPAREANDEXCHANGEVOLATILE(
-                    "(\\$type\\$) vh.compareAndExchangeVolatile(\\$object\\$\\$index_para\\$, $1, $2);",
+                    "(\\$type\\$) vh.compareAndExchange(\\$object\\$\\$index_para\\$, $1, $2);",
                     CompareAndExchangeVolatile
             ),