[concurrency-interest] Java 8 CompletableFuture.thenCombine() hangs

Doug Lea dl at cs.oswego.edu
Fri May 2 13:59:10 EDT 2014


On 04/13/2014 06:50 PM, Doug Lea wrote:
> By further repacking actions, we can move completion lists
> around even in non-tail recursive cases without practical
> loss in potential parallelism, and, as it turns out, with
> a small gain in average throughput.

While testing sets of concurrent CompletableFutures with
millions of dependencies, I noticed that they could become
hostile to GC (mainly due to "floating" garbage).
Arranging to allow aggressive detachment led me
to undertake a long-needed internal refactoring.

-Doug

>
> Updated sources at
>
> http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurrent/CompletableFuture.java?view=log
>
>
> Also compiled into the jar at
>     http://gee.cs.oswego.edu/dl/jsr166/dist/jsr166.jar
> that you can run with -Xbootclasspath
>
> Please try it out.
>


More information about the Concurrency-interest mailing list