[jdk19] RFR: 8287809: Revisit implementation of memory session [v4]

Jorn Vernee jvernee at openjdk.org
Wed Jul 6 17:11:55 UTC 2022


On Wed, 6 Jul 2022 17:05:51 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Revert implicit vs. heap session changes
>
> src/java.base/share/classes/java/lang/invoke/X-VarHandleSegmentView.java.template line 131:
> 
>> 129:         AbstractMemorySegmentImpl bb = checkAddress(obb, base, handle.length, true);
>> 130: #if[floatingPoint]
>> 131:         $rawType$ rawValue = SCOPED_MEMORY_ACCESS.get$RawType$Unaligned(bb.session(),
> 
> For instance, it's not clear to me why `baseSession()` is not called here.

It seems that, if `get$RawType$Unaligned` calls `checkValidStateRaw()` this will end up throwing an exception

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

PR: https://git.openjdk.org/jdk19/pull/22



More information about the security-dev mailing list