[jdk16] RFR: 8259032: MappedMemorySegmentImpl#makeMappedSegment() ignores Unmapper#pagePosition
mcimadamore at openjdk.java.net
Tue Jan 5 16:15:57 UTC 2021
On Tue, 5 Jan 2021 16:03:04 GMT, Uwe Schindler <uschindler at openjdk.org> wrote:
>> In fact the new test only checks if everything is aligned like we expect, but it does not test that our mapping returns a memory segment with expected contents.
> So I tend to make a simple test without reflection that writes a defined sequence of bytes to a file and then maps it with various offsets, checking that the first byte in the mapped segment is from that sequence.
More information about the core-libs-dev