mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-03 04:30:06 +00:00
7017901: OOME in java/util/concurrent/BlockingQueue/CancelledProducerConsumerLoops.java
Unbounded queues should be disabled in the test Reviewed-by: alanb
This commit is contained in:
parent
313991183b
commit
e5d4746fb4
@ -124,11 +124,11 @@ public class CancelledProducerConsumerLoops {
|
||||
oneRun(new ArrayBlockingQueue<Integer>(CAPACITY), pairs, iters);
|
||||
oneRun(new LinkedBlockingQueue<Integer>(CAPACITY), pairs, iters);
|
||||
oneRun(new LinkedBlockingDeque<Integer>(CAPACITY), pairs, iters);
|
||||
oneRun(new LinkedTransferQueue<Integer>(), pairs, iters);
|
||||
oneRun(new SynchronousQueue<Integer>(), pairs, iters / 8);
|
||||
|
||||
/* PriorityBlockingQueue is unbounded
|
||||
/* unbounded queue implementations are prone to OOME
|
||||
oneRun(new PriorityBlockingQueue<Integer>(iters / 2 * pairs), pairs, iters / 4);
|
||||
oneRun(new LinkedTransferQueue<Integer>(), pairs, iters);
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user