[foreign-memaccess+abi] RFR: 8300201: When storing MemoryAddress.ofLong(0x0000000080000000L), MemorySegment.get is not equal to MemorySegment.set because of the expanded sign [v2]

Per Minborg pminborg at openjdk.org
Mon Jan 23 17:47:41 UTC 2023


On Mon, 23 Jan 2023 17:41:39 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Per Minborg has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Update comments for 32-bit platforms
>>  - Update src/java.base/share/classes/java/lang/foreign/MemorySegment.java
>>    
>>    Co-authored-by: Maurizio Cimadamore <54672762+mcimadamore at users.noreply.github.com>
>
> src/java.base/share/classes/java/lang/foreign/MemorySegment.java line 1047:
> 
>> 1045:      * <p>
>> 1046:      * On 32-bit platforms, the given address value will be normalized such that the
>> 1047:      * upper 32 bits of the {@link MemorySegment#address() address} of returned memory segment
> 
> Sorry, I mean to replicate this change in all the other pieces of javadoc where you talk of 32 bits.

Fixed now

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

PR: https://git.openjdk.org/panama-foreign/pull/774


More information about the panama-dev mailing list