[foreign-memaccess] scopes and thread confinement
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue May 21 19:22:49 UTC 2019
On 21/05/2019 19:44, Jorn Vernee wrote:
> Sure, so the global scope implementation will not have this list, but
> it can not be closed any ways. Then the forked scope implementations
> will have this list, they can be closed, and use the list to close the
> children as well.
>
> So there would still be a link from parents to children _except_ for
> the global scope Right?
Ok, I see what you mean. Yes, this is another possibility.
In reality I was looking into removing the descendant list also for
other reasons (e.g. very expensive to set up if you just do a single
allocation). But that could go either way yes.
>
> Jorn
>
> Maurizio Cimadamore schreef op 2019-05-21 19:48:
>> On 21/05/2019 15:17, Jorn Vernee wrote:
>>> I'm not sure about the second point. The descendant list could be
>>> removed, but forked scopes could keep it right (so no need for
>>> recursive checks)?
>>
>> If we don't have links from parents to children, when you close the
>> parent it won't be possible to trigger close of the children. Instead,
>> children will have to look back at the parent and see if that has been
>> closed. Do we agree?
>>
>> Maurizio
More information about the panama-dev
mailing list