changeset 49:83d5219c2f6f

Only the canonical traces should remain.
author shade
date Fri, 30 Aug 2013 19:07:00 +0400
parents 54d7cf5a60bd
children 09d02dd7b198
files generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Fri Aug 30 18:05:37 2013 +0400
+++ b/generator/src/main/java/org/openjdk/jcstress/tracer/TraceGen.java	Fri Aug 30 19:07:00 2013 +0400
@@ -69,15 +69,13 @@
             allTraces.addAll(traces);
         }
 
-        Set<String> generatedTraces = new HashSet<String>();
-
         List<Trace> newTraces = new ArrayList<Trace>();
         for (Trace trace : allTraces) {
             if (!trace.hasLoads()) continue;
             if (!trace.hasStores()) continue;
             if (trace.hasNonMatchingLoads()) continue;
             if (trace.hasNonMatchingStores()) continue;
-            if (!generatedTraces.add(trace.canonicalId())) continue;
+            if (!trace.canonicalId().equals(trace.id())) continue;
 
             int constId = 0;
             int resId = 0;