[concurrency-interest] ForkJoinTask does not re-check task status entailing overhead

Doug Lea dl at cs.oswego.edu
Tue Nov 6 11:38:22 EST 2018

On 11/6/18 9:50 AM, RĂ©mi Barat via Concurrency-interest wrote:
> Hi, Doug,
> Thank you very much for your quick answer. We originally made exec()
> return false since the javadoc says "Returns: true if this task is known
> to have completed /normally/". Maybe it should be updated so that it
> matches your answer, that "... assuming that exec() returns true if done
> (either normally or exceptionally)".

Yes; thanks -- "normally" should/will be deleted in that sentence
(especially since it does not mesh with the following sentence
clarification.) Sorry for the confusion!

> Do you see any potential issue we might have after changing this return
> value from false to true?



More information about the Concurrency-interest mailing list