[concurrency-interest] ForkJoin updates

Doug Lea dl at cs.oswego.edu
Sun Mar 4 14:55:21 EST 2012


On 03/04/12 14:50, Alex Lam S.L. wrote:
>> (No, we can't support the nicer-to-use "int" without hurting other
>> FJ usages.)
>
> Would you mind elaborate more on this? Is this something to do with
> the 2-byte overhead being too significantly when the number of tasks
> are large?


No -- we have some spare bits in a control word that we must keep
atomically updated anyway. So we can let users use 16 of them for tags.
But we can't magically add any more bits and still maintain atomic
updates that are both cheap and coordinated with state changes.

-Doug


More information about the Concurrency-interest mailing list