[foreign-memaccess] RFR: JDK-8243089: Foreign address manipulation always fails with exception
Jorn Vernee
jvernee at openjdk.java.net
Fri Apr 17 18:38:24 UTC 2020
On Fri, 17 Apr 2020 18:11:01 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch fixes a silly mistake in Foreign implementation. Instead of checking whether `MemoryAddress::segment`
> returns null, we instead check if it returns `AbstractMemorySegmentImpl::NOTHING`.
> I've also added positive test, to make sure we catch these issues from now on.
Looks good, thanks for fixing!
-------------
Marked as reviewed by jvernee (Committer).
PR: https://git.openjdk.java.net/panama-foreign/pull/118
More information about the panama-dev
mailing list