changeset 8:c56b76139553

Generate all tests up to O^2.
author shade
date Mon, 08 Jul 2013 19:26:52 +0400
parents 094e00503f13
children 6c2aca7f74fe
files generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Mon Jul 08 19:22:21 2013 +0400
+++ b/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Mon Jul 08 19:26:52 2013 +0400
@@ -62,13 +62,15 @@
             }
         }
 
+        List<Trace> allTraces = new ArrayList<Trace>();
         List<Trace> traces = Collections.singletonList(new Trace());
         for (int l = 0; l < possibleOps.size(); l++) {
             traces = product(traces, possibleOps);
+            allTraces.addAll(traces);
         }
 
         List<Trace> newTraces = new ArrayList<Trace>();
-        for (Trace trace : traces) {
+        for (Trace trace : allTraces) {
             if (!trace.hasLoads()) continue;
             if (!trace.hasStores()) continue;