changeset 306:d05bb19014cd

7901712: VarHandles, Direct ByteBuffer tests probe the aligned offset in heap buffer, not in direct one
author shade
date Tue, 12 Jul 2016 00:19:01 +0300
parents 41007cd99ae8
children 2951b845259c
files jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-AddAndGetTest.java.template jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-CAETest.java.template jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-CASTest.java.template jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-GetAndAddTest.java.template jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-GetAndSetTest.java.template jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-WeakCASContendStrongTest.java.template jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-WeakCASTest.java.template
diffstat 7 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-AddAndGetTest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-AddAndGetTest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -48,7 +48,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;
 
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-CAETest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-CAETest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -50,7 +50,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;
 
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-CASTest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-CASTest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -50,7 +50,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;
 
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-GetAndAddTest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-GetAndAddTest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -48,7 +48,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;
 
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-GetAndSetTest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-GetAndSetTest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -49,7 +49,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;
 
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-WeakCASContendStrongTest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-WeakCASContendStrongTest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -50,7 +50,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;
 
--- a/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-WeakCASTest.java.template	Mon Jul 11 23:33:44 2016 +0300
+++ b/jcstress-test-gen/src/main/resources/operationAtomic/byteBuffer/X-WeakCASTest.java.template	Tue Jul 12 00:19:01 2016 +0300
@@ -50,7 +50,7 @@
 @State
 public class $TestClassName$ {
 
-    static final int OFF = ByteBuffer.wrap(new byte[128]).alignmentOffset(0, 8);
+    static final int OFF = $buffer_allocate$(128).alignmentOffset(0, 8);
 
     static final VarHandle vh;