<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br><div><br><blockquote type="cite"><div>On Mar 27, 2023, at 6:45 AM, Jorn Vernee <jorn.vernee@oracle.com> wrote:</div><br class="Apple-interchange-newline"><div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div><p>A concise description of the changes in 19 and 20 can be found in
the CSRs of the JEPs in those releases:<br>
<br>
19: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8282192">https://bugs.openjdk.org/browse/JDK-8282192</a><br>
20: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8295045">https://bugs.openjdk.org/browse/JDK-8295045</a><br>
<br>
ResourceScope has been replaced by MemorySession in 19, and later
SegmentScope/Arena in 20 [1]. MemoryAddress has been merged into
MemorySegment [2]<br>
</p><p>HTH,<br>
Jorn</p><p>[1]:
<a class="moz-txt-link-freetext" href="https://cr.openjdk.org/~mcimadamore/panama/session_arenas.html">https://cr.openjdk.org/~mcimadamore/panama/session_arenas.html</a><br>
[2]:
<a class="moz-txt-link-freetext" href="https://cr.openjdk.org/~mcimadamore/panama/segment_address.html">https://cr.openjdk.org/~mcimadamore/panama/segment_address.html</a><br>
</p>
</div></div></blockquote>Thanks, my understanding definitely still has a ways to go.</div><div>I was able to successfully replace my one use of MemoryAddress with MemorySegment. This to begin with was to replace the use of unsafe to dereference a native pointer.</div><div>For what I am currently looking at, for now I will probably just use it against jdk-20+. I am more trying to see if I can get something to work at all rather than trying to support it against multiple versions.</div><div><br></div><div>Mike</div><br></body></html>