changeset 266:73e599b8d13c

Chapters 0.b/c: purge a few more isomorphic tests.
author shade
date Fri, 20 May 2016 01:11:51 +0300
parents f4a0d5bc585c
children e3e46feae474
files jcstress-test-gen/src/main/java/org/openjdk/jcstress/generator/seqcst/SeqCstTraceGenerator.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jcstress-test-gen/src/main/java/org/openjdk/jcstress/generator/seqcst/SeqCstTraceGenerator.java	Fri May 20 00:30:06 2016 +0300
+++ b/jcstress-test-gen/src/main/java/org/openjdk/jcstress/generator/seqcst/SeqCstTraceGenerator.java	Fri May 20 01:11:51 2016 +0300
@@ -582,7 +582,9 @@
 
             List<Trace> lsTrace = new ArrayList<>();
             lsTrace.addAll(threads);
-            Collections.sort(lsTrace, (o1, o2) -> o1.loadStoreSeq().compareTo(o2.loadStoreSeq()));
+            Collections.sort(lsTrace,
+                    Comparator.comparing(Trace::loadStoreSeq)
+                              .thenComparing(Trace::id));
 
             int varId = 0;
             Map<Integer, Integer> varMap = new HashMap<>();