changeset 284:15032b3442e0

Chapter 0.a: Remove large array atomicity tests.
author shade
date Wed, 01 Jun 2016 17:05:53 +0300
parents bfbe23678089
children 9c8a067c5565
files jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter0aTestGenerator.java jcstress-test-gen/src/main/resources/accessAtomic/X-ArrayLargeAtomicityTest.java.template tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/BooleanTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/ByteTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/CharTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/DoubleTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/FloatTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/IntTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/LongTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/ShortTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/StringTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/BooleanTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/ByteTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/CharTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/DoubleTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/FloatTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/IntTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/LongTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/ShortTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/StringTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/BooleanTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/ByteTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/CharTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/DoubleTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/FloatTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/IntTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/LongTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/ShortTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/StringTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/BooleanTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/ByteTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/CharTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/DoubleTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/FloatTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/IntTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/LongTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/ShortTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/StringTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/BooleanTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/ByteTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/CharTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/DoubleTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/FloatTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/IntTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/LongTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/ShortTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/StringTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/BooleanTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/ByteTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/CharTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/DoubleTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/FloatTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/IntTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/LongTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/ShortTest.java tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/StringTest.java
diffstat 56 files changed, 995 insertions(+), 2115 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter0aTestGenerator.java	Wed Jun 01 16:58:45 2016 +0300
+++ b/jcstress-test-gen/src/main/java/org/openjdk/jcstress/chapters/Chapter0aTestGenerator.java	Wed Jun 01 17:05:53 2016 +0300
@@ -101,14 +101,7 @@
         makeTests(
                 dest,
                 GeneratorUtils.readFromResource("/accessAtomic/X-ArrayAtomicityTest.java.template"),
-                "accessAtomic.arrays.small",
-                new String[]{ "", "volatile" }
-        );
-
-        makeTests(
-                dest,
-                GeneratorUtils.readFromResource("/accessAtomic/X-ArrayLargeAtomicityTest.java.template"),
-                "accessAtomic.arrays.large",
+                "accessAtomic.arrays",
                 new String[]{ "", "volatile" }
         );
 
--- a/jcstress-test-gen/src/main/resources/accessAtomic/X-ArrayLargeAtomicityTest.java.template	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package $package$;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-#warn
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-#if[alwaysAtomic]
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-#else[alwaysAtomic]
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-#end[alwaysAtomic]
-@State
-public class $name$ {
-
-    $modifier$$type$[] arr = new $type$[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        $type$[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = $setLiteral$;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        $type$[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for ($type$ v : a) {
-                allCorrect &= (v == $setLiteral$ || v == $defaultLiteral$);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/BooleanTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class BooleanTest {
-
-    boolean[] arr = new boolean[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        boolean[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = true;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        boolean[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (boolean v : a) {
-                allCorrect &= (v == true || v == false);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/ByteTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ByteTest {
-
-    byte[] arr = new byte[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        byte[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = (byte) -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        byte[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (byte v : a) {
-                allCorrect &= (v == (byte) -1 || v == 0);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
Binary file tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/CharTest.java has changed
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/DoubleTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class DoubleTest {
-
-    double[] arr = new double[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        double[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = 1.39067116124321E-309;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        double[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (double v : a) {
-                allCorrect &= (v == 1.39067116124321E-309 || v == 0D);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/FloatTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class FloatTest {
-
-    float[] arr = new float[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        float[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = 2.3509528E-38F;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        float[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (float v : a) {
-                allCorrect &= (v == 2.3509528E-38F || v == 0F);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/IntTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class IntTest {
-
-    int[] arr = new int[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        int[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        int[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (int v : a) {
-                allCorrect &= (v == -1 || v == 0);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/LongTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class LongTest {
-
-    long[] arr = new long[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        long[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = -1L;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        long[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (long v : a) {
-                allCorrect &= (v == -1L || v == 0L);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/ShortTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ShortTest {
-
-    short[] arr = new short[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        short[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = (short) -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        short[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (short v : a) {
-                allCorrect &= (v == (short) -1 || v == 0);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/plain/StringTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class StringTest {
-
-    String[] arr = new String[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        String[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = "object";
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        String[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (String v : a) {
-                allCorrect &= (v == "object" || v == null);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/BooleanTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class BooleanTest {
-
-    volatile boolean[] arr = new boolean[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        boolean[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = true;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        boolean[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (boolean v : a) {
-                allCorrect &= (v == true || v == false);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/ByteTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ByteTest {
-
-    volatile byte[] arr = new byte[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        byte[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = (byte) -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        byte[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (byte v : a) {
-                allCorrect &= (v == (byte) -1 || v == 0);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
Binary file tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/CharTest.java has changed
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/DoubleTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class DoubleTest {
-
-    volatile double[] arr = new double[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        double[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = 1.39067116124321E-309;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        double[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (double v : a) {
-                allCorrect &= (v == 1.39067116124321E-309 || v == 0D);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/FloatTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class FloatTest {
-
-    volatile float[] arr = new float[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        float[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = 2.3509528E-38F;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        float[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (float v : a) {
-                allCorrect &= (v == 2.3509528E-38F || v == 0F);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/IntTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class IntTest {
-
-    volatile int[] arr = new int[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        int[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        int[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (int v : a) {
-                allCorrect &= (v == -1 || v == 0);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/LongTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class LongTest {
-
-    volatile long[] arr = new long[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        long[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = -1L;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        long[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (long v : a) {
-                allCorrect &= (v == -1L || v == 0L);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/ShortTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ShortTest {
-
-    volatile short[] arr = new short[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        short[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = (short) -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        short[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (short v : a) {
-                allCorrect &= (v == (short) -1 || v == 0);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/large/volatiles/StringTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,65 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.large.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "Have not seen the array yet.")
-@Outcome(id = "1",  expect = Expect.ACCEPTABLE, desc = "Seen all elements set.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class StringTest {
-
-    volatile String[] arr = new String[2 * 1024 * 1024];
-
-    @Actor
-    public void actor1() {
-        String[] a = arr;
-        for (int c = 0; c < a.length; c++) a[c] = "object";
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        String[] a = arr;
-        if (a == null) {
-            r.r1 = -1;
-        } else {
-            boolean allCorrect = true;
-            for (String v : a) {
-                allCorrect &= (v == "object" || v == null);
-            }
-            r.r1 = allCorrect ? 1 : 0;
-        }
-    }
-
-}
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/BooleanTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "false", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "true", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class BooleanTest {
+
+    boolean[] a = new boolean[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = true;
+    }
+
+    @Actor
+    public void actor2(BooleanResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/ByteTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class ByteTest {
+
+    byte[] a = new byte[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = (byte) -1;
+    }
+
+    @Actor
+    public void actor2(ByteResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/CharTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "\u0000", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "A", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class CharTest {
+
+    char[] a = new char[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = 'A';
+    }
+
+    @Actor
+    public void actor2(CharResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/DoubleTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "1.39067116124321E-309", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
+@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
+@State
+public class DoubleTest {
+
+    double[] a = new double[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = 1.39067116124321E-309;
+    }
+
+    @Actor
+    public void actor2(DoubleResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/FloatTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "2.3509528E-38", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class FloatTest {
+
+    float[] a = new float[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = 2.3509528E-38F;
+    }
+
+    @Actor
+    public void actor2(FloatResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/IntTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class IntTest {
+
+    int[] a = new int[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = -1;
+    }
+
+    @Actor
+    public void actor2(IntResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/LongTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
+@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
+@State
+public class LongTest {
+
+    long[] a = new long[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = -1L;
+    }
+
+    @Actor
+    public void actor2(LongResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/ShortTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class ShortTest {
+
+    short[] a = new short[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = (short) -1;
+    }
+
+    @Actor
+    public void actor2(ShortResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/plain/StringTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.plain;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "null", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "object", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class StringTest {
+
+    String[] a = new String[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = "object";
+    }
+
+    @Actor
+    public void actor2(StringResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/BooleanTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "false", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "true", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class BooleanTest {
-
-    boolean[] a = new boolean[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = true;
-    }
-
-    @Actor
-    public void actor2(BooleanResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/ByteTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ByteTest {
-
-    byte[] a = new byte[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = (byte) -1;
-    }
-
-    @Actor
-    public void actor2(ByteResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/CharTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "\u0000", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "A", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class CharTest {
-
-    char[] a = new char[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = 'A';
-    }
-
-    @Actor
-    public void actor2(CharResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/DoubleTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "1.39067116124321E-309", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class DoubleTest {
-
-    double[] a = new double[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = 1.39067116124321E-309;
-    }
-
-    @Actor
-    public void actor2(DoubleResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/FloatTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "2.3509528E-38", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class FloatTest {
-
-    float[] a = new float[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = 2.3509528E-38F;
-    }
-
-    @Actor
-    public void actor2(FloatResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/IntTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class IntTest {
-
-    int[] a = new int[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/LongTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class LongTest {
-
-    long[] a = new long[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = -1L;
-    }
-
-    @Actor
-    public void actor2(LongResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/ShortTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ShortTest {
-
-    short[] a = new short[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = (short) -1;
-    }
-
-    @Actor
-    public void actor2(ShortResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/plain/StringTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.plain;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "null", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "object", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class StringTest {
-
-    String[] a = new String[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = "object";
-    }
-
-    @Actor
-    public void actor2(StringResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/BooleanTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "false", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "true", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class BooleanTest {
-
-    volatile boolean[] a = new boolean[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = true;
-    }
-
-    @Actor
-    public void actor2(BooleanResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/ByteTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ByteTest {
-
-    volatile byte[] a = new byte[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = (byte) -1;
-    }
-
-    @Actor
-    public void actor2(ByteResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/CharTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "\u0000", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "A", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class CharTest {
-
-    volatile char[] a = new char[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = 'A';
-    }
-
-    @Actor
-    public void actor2(CharResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/DoubleTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "1.39067116124321E-309", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class DoubleTest {
-
-    volatile double[] a = new double[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = 1.39067116124321E-309;
-    }
-
-    @Actor
-    public void actor2(DoubleResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/FloatTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "2.3509528E-38", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class FloatTest {
-
-    volatile float[] a = new float[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = 2.3509528E-38F;
-    }
-
-    @Actor
-    public void actor2(FloatResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/IntTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class IntTest {
-
-    volatile int[] a = new int[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = -1;
-    }
-
-    @Actor
-    public void actor2(IntResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/LongTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
-@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
-@State
-public class LongTest {
-
-    volatile long[] a = new long[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = -1L;
-    }
-
-    @Actor
-    public void actor2(LongResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/ShortTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class ShortTest {
-
-    volatile short[] a = new short[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = (short) -1;
-    }
-
-    @Actor
-    public void actor2(ShortResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- a/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/small/volatiles/StringTest.java	Wed Jun 01 16:58:45 2016 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-package org.openjdk.jcstress.tests.accessAtomic.arrays.small.volatiles;
-
-import org.openjdk.jcstress.annotations.*;
-import org.openjdk.jcstress.infra.results.*;
-
-// -- This file was mechanically generated: Do not edit! -- //
-
-/**
- * Tests if fields experience non-atomic reads/writes.
- */
-@JCStressTest
-@Outcome(id = "null", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
-@Outcome(id = "object", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
-@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
-@State
-public class StringTest {
-
-    volatile String[] a = new String[1];
-
-    @Actor
-    public void actor1() {
-        a[0] = "object";
-    }
-
-    @Actor
-    public void actor2(StringResult1 r) {
-        r.r1 = a[0];
-    }
-
-}
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/BooleanTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "false", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "true", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class BooleanTest {
+
+    volatile boolean[] a = new boolean[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = true;
+    }
+
+    @Actor
+    public void actor2(BooleanResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/ByteTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class ByteTest {
+
+    volatile byte[] a = new byte[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = (byte) -1;
+    }
+
+    @Actor
+    public void actor2(ByteResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/CharTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "\u0000", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "A", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class CharTest {
+
+    volatile char[] a = new char[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = 'A';
+    }
+
+    @Actor
+    public void actor2(CharResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/DoubleTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "1.39067116124321E-309", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
+@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
+@State
+public class DoubleTest {
+
+    volatile double[] a = new double[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = 1.39067116124321E-309;
+    }
+
+    @Actor
+    public void actor2(DoubleResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/FloatTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0.0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "2.3509528E-38", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class FloatTest {
+
+    volatile float[] a = new float[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = 2.3509528E-38F;
+    }
+
+    @Actor
+    public void actor2(FloatResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/IntTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class IntTest {
+
+    volatile int[] a = new int[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = -1;
+    }
+
+    @Actor
+    public void actor2(IntResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/LongTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.ACCEPTABLE_SPEC, desc = "Non-atomic access detected, allowed by spec")
+@Ref("http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.7")
+@State
+public class LongTest {
+
+    volatile long[] a = new long[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = -1L;
+    }
+
+    @Actor
+    public void actor2(LongResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/ShortTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "0", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "-1", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class ShortTest {
+
+    volatile short[] a = new short[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = (short) -1;
+    }
+
+    @Actor
+    public void actor2(ShortResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests-chapter-0a/src/main/java/org/openjdk/jcstress/tests/accessAtomic/arrays/volatiles/StringTest.java	Wed Jun 01 17:05:53 2016 +0300
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.  Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+package org.openjdk.jcstress.tests.accessAtomic.arrays.volatiles;
+
+import org.openjdk.jcstress.annotations.*;
+import org.openjdk.jcstress.infra.results.*;
+
+// -- This file was mechanically generated: Do not edit! -- //
+
+/**
+ * Tests if fields experience non-atomic reads/writes.
+ */
+@JCStressTest
+@Outcome(id = "null", expect = Expect.ACCEPTABLE, desc = "Default value for the element. Allowed to see this: data race.")
+@Outcome(id = "object", expect = Expect.ACCEPTABLE, desc = "The value set by the actor thread. Observer sees the complete update.")
+@Outcome(expect = Expect.FORBIDDEN, desc = "Other values are forbidden: atomicity violation.")
+@State
+public class StringTest {
+
+    volatile String[] a = new String[1];
+
+    @Actor
+    public void actor1() {
+        a[0] = "object";
+    }
+
+    @Actor
+    public void actor2(StringResult1 r) {
+        r.r1 = a[0];
+    }
+
+}
+