[foreign-memaccess+abi] RFR: 8265974: ResourceScope code does not handle close vs. add races well [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon Apr 26 20:18:16 UTC 2021


On Mon, 26 Apr 2021 19:02:02 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

> but the cost for a confined scope is likely minimal. Could specialize later if need be.

Yes - that's the process I have followed as well. It doesn't seem like the cost is enough to justify code specialization, but we can go there if needed.

> src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/ConfinedScope.java line 90:
> 
>> 88:      * A confined resource list; no races are possible here.
>> 89:      */
>> 90:     static class ConfinedResourceList extends ResourceList {
> 
> Remove of `final` needed?

whoops - will fix

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/520


More information about the panama-dev mailing list