Skip to content
Snippets Groups Projects
Commit 3473125c authored by Marek Cuchý's avatar Marek Cuchý
Browse files

back to JDK 11 because VMlens does not does not fully support JDK 17

parent 81100344
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
<version>1.0-SNAPSHOT</version>
<properties>
<javac.target>17</javac.target>
<javac.target>11</javac.target>
<junit.version>5.8.2</junit.version>
<uberjar.name>jcstress</uberjar.name>
<vmlens.version>1.1.5</vmlens.version>
......
......@@ -15,8 +15,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
*/
public class VmlensStringSetTest {
Supplier<StringSet> testedSet = () -> new NonblockStringSet(1);
// Supplier<StringSet> testedSet = () -> new SynchronizedStringSet(1);
// Supplier<StringSet> testedSet = () -> new NonblockStringSet(1);
Supplier<StringSet> testedSet = () -> new SynchronizedStringSet(1);
/**
......
......@@ -108,7 +108,9 @@ public class VmlensTestRunner {
initTasks.forEach(init -> init.accept(set));
List<Thread> threads = parallelTasks.stream().map(task -> new Thread(() -> task.accept(set))).toList();
List<Thread> threads = parallelTasks.stream()
.map(task -> new Thread(() -> task.accept(set)))
.collect(Collectors.toList());
threads.forEach(Thread::start);
for (Thread thread : threads) {
thread.join();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment