hg: lambda/lambda/jdk: Remove OutOfMemoryException catching in spliterators as this tends

paul.sandoz at oracle.com paul.sandoz at oracle.com
Thu Jun 6 08:35:04 PDT 2013

Changeset: b3afa63e3a02
Author:    psandoz
Date:      2013-06-06 17:34 +0200
URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/b3afa63e3a02

Remove OutOfMemoryException catching in spliterators as this tends
to just push the error around and induce other issues that are
hard to track down.
TODO: AbstractTask.compute needs to be modified to detect imbalanced
splits produced by such spliterators, detect if queued tasks are
greater than a threshold, and if so steal work, rather than
creating more work that uses of more memory.

! src/share/classes/java/util/LinkedList.java
! src/share/classes/java/util/Spliterators.java
! src/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java
! src/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java
! src/share/classes/java/util/concurrent/LinkedBlockingDeque.java
! src/share/classes/java/util/concurrent/LinkedBlockingQueue.java
! src/share/classes/java/util/concurrent/LinkedTransferQueue.java

More information about the lambda-dev mailing list