mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-22 16:17:44 +00:00
bump1
This commit is contained in:
1 parent
796d81e58b
commit
79e80bef33
14 files changed
+419
-134
No files matched your search
+5
-4
@@ -7,10 +7,11 @@ import static org.junit.Assert.assertEquals;
|
||||
public class AsyncPregenMethodConcurrencyCapTest {
|
||||
@Test
|
||||
public void paperLikeRecommendedCapTracksWorkerThreads() {
|
||||
assertEquals(8, AsyncPregenMethod.computePaperLikeRecommendedCap(1));
|
||||
assertEquals(8, AsyncPregenMethod.computePaperLikeRecommendedCap(4));
|
||||
assertEquals(24, AsyncPregenMethod.computePaperLikeRecommendedCap(12));
|
||||
assertEquals(96, AsyncPregenMethod.computePaperLikeRecommendedCap(80));
|
||||
assertEquals(16, AsyncPregenMethod.computePaperLikeRecommendedCap(1));
|
||||
assertEquals(16, AsyncPregenMethod.computePaperLikeRecommendedCap(4));
|
||||
assertEquals(48, AsyncPregenMethod.computePaperLikeRecommendedCap(12));
|
||||
assertEquals(128, AsyncPregenMethod.computePaperLikeRecommendedCap(80));
|
||||
assertEquals(128, AsyncPregenMethod.computePaperLikeRecommendedCap(128));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+12
@@ -11,6 +11,18 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class BurstExecutorSupportReentrantTest {
|
||||
@Test
|
||||
public void multiBurstRecognizesOwnedWorkerThread() throws Exception {
|
||||
MultiBurst burst = new MultiBurst("Iris Test", Thread.NORM_PRIORITY, () -> 1);
|
||||
|
||||
try {
|
||||
Future<Boolean> future = burst.submit(burst::ownsCurrentThread);
|
||||
assertTrue(future.get(5, TimeUnit.SECONDS));
|
||||
} finally {
|
||||
burst.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void runsNestedBurstInlineOnSameForkJoinPoolWorker() throws Exception {
|
||||
ForkJoinPool pool = new ForkJoinPool(1);
|
||||
|
||||
Reference in new issue
Block a user