begin to adapt test for Chronicle's anticipated delivery of an off-heap j.u.c.l.StampedLock API

This commit is contained in:
cotton-ben
2020-07-01 04:36:29 -04:00
parent 5fc427d594
commit 341f9b2858
67 changed files with 1641 additions and 834 deletions
@@ -17,6 +17,7 @@
package net.openhft.chronicle.map;
import net.openhft.chronicle.core.Jvm;
import net.openhft.chronicle.threads.NamedThreadFactory;
import org.junit.Test;
import java.io.File;
@@ -47,10 +48,12 @@ public class ChronicleMapSanityCheckTest {
file.getAbsolutePath().toString());
ScheduledExecutorService producerExecutor =
Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() - 1);
Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() - 1,
new NamedThreadFactory("producer"));
ScheduledExecutorService consumerExecutor =
Executors.newSingleThreadScheduledExecutor();
Executors.newSingleThreadScheduledExecutor(
new NamedThreadFactory("consumer"));
int N = 1000;