[jdk18] RFR: 8279527: Dereferencing segments backed by different scopes leads to pollution [v2]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Thu Jan 6 12:19:33 UTC 2022


On Thu, 6 Jan 2022 12:11:29 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use owner field instead of accessor in checkValidStateSlow
>
> src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/ConfinedScope.java line 45:
> 
>> 43:     private int lockCount = 0;
>> 44:     private int asyncReleaseCount = 0;
>> 45:     private final Thread owner;
> 
> Is this `owner` field still needed now that the super class also has it?

Forgot to remove - well spotted

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

PR: https://git.openjdk.java.net/jdk18/pull/82


More information about the core-libs-dev mailing list