[foreign-preview] RFR: 8280527: Move jdk.incubator.foreign to java.lang.foreign [v2]

Julia Boes jboes at openjdk.java.net
Wed Jan 26 14:57:04 UTC 2022


On Tue, 25 Jan 2022 12:54:29 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Julia Boes has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   address PR comments
>
> src/java.base/share/classes/java/lang/invoke/VarHandles.java line 56:
> 
>> 54:     static {
>> 55:         try {
>> 56:             BYTE_TO_BOOL = MethodHandles.lookup().findStatic(VarHandles.class, "byteToBoolean",
> 
> Where are these used? I think `Utils` declares its own set of MHs ?

Right, some duplication here. I dropped these MH constants and changed `MHs::memoryAccessVarHandle` to call `Utils::makeMemoryAccessVarHandle`.

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

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


More information about the panama-dev mailing list