[foreign-memaccess] [Rev 01] RFR: Move "owner" field and thread-confinement checks to MemoryScope
Peter Levart
plevart at openjdk.java.net
Fri May 15 12:51:11 UTC 2020
On Fri, 15 May 2020 12:18:20 GMT, Peter Levart <plevart at openjdk.org> wrote:
>> Looks good. Thanks.
>
> I hid checkAliveConfined (by making it private static) and also the closed field which has the same poblem of being
> access from subclass if it is private. But there's no such problem if it is accessed via VarHandle. Would that be OK?
I ran the tests and the TestSegments.testOpOutsideConfinement(close) fails with this change. The fix follows.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/167
More information about the panama-dev
mailing list