mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
begin to adapt test for Chronicle's anticipated delivery of an off-heap j.u.c.l.StampedLock API
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user