On Tue, 5 Jan 2021 16:03:04 GMT, Uwe Schindler <uschind...@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. Good suggestion! ------------- PR: https://git.openjdk.java.net/jdk16/pull/84