mirror of
https://github.com/openjdk/jdk8u.git
synced 2025-12-10 21:05:56 -06:00
8081734: ConcurrentHashMap/ConcurrentAssociateTest.java, times out 90% of time on sparc with 256 cpu.
Backport-of: 6e48caf2507d4a45e1861ee699a32a5e459d70c2
This commit is contained in:
parent
d0281bedf0
commit
35d219b4d4
@ -120,7 +120,8 @@ public class ConcurrentAssociateTest {
|
||||
}
|
||||
};
|
||||
|
||||
int ps = Runtime.getRuntime().availableProcessors();
|
||||
// Bound concurrency to avoid degenerate performance
|
||||
int ps = Math.min(Runtime.getRuntime().availableProcessors(), 32);
|
||||
Stream<CompletableFuture> runners = IntStream.range(0, ps)
|
||||
.mapToObj(i -> sr.get())
|
||||
.map(CompletableFuture::runAsync);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user