diff --git a/RoaringBitmap/src/test/java/org/roaringbitmap/buffer/TestMemoryMapping.java b/RoaringBitmap/src/test/java/org/roaringbitmap/buffer/TestMemoryMapping.java index 1605cabfc..fc39d3874 100644 --- a/RoaringBitmap/src/test/java/org/roaringbitmap/buffer/TestMemoryMapping.java +++ b/RoaringBitmap/src/test/java/org/roaringbitmap/buffer/TestMemoryMapping.java @@ -380,7 +380,7 @@ public void multithreadingTest() throws InterruptedException, IOException { final CountDownLatch ready = new CountDownLatch(numThreads); final CountDownLatch finished = new CountDownLatch(numThreads); - ExecutorService executorService = Executors.newFixedThreadPool(numThreads); + ExecutorService executorService = Executors.newVirtualThreadPerTaskExecutor(); for (int i = 0; i < numThreads; i++) { final int ti = i;