ResourceScope missing OS/X

Michael Hall mik3hall at gmail.com
Mon Mar 27 12:03:58 UTC 2023



> On Mar 27, 2023, at 6:45 AM, Jorn Vernee <jorn.vernee at oracle.com> wrote:
> 
> A concise description of the changes in 19 and 20 can be found in the CSRs of the JEPs in those releases:
> 
> 19: https://bugs.openjdk.org/browse/JDK-8282192
> 20: https://bugs.openjdk.org/browse/JDK-8295045
> 
> ResourceScope has been replaced by MemorySession in 19, and later SegmentScope/Arena in 20 [1]. MemoryAddress has been merged into MemorySegment [2]
> 
> HTH,
> Jorn
> 
> [1]: https://cr.openjdk.org/~mcimadamore/panama/session_arenas.html
> [2]: https://cr.openjdk.org/~mcimadamore/panama/segment_address.html
> 
Thanks, my understanding definitely still has a ways to go.
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.
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.

Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20230327/c1491f4d/attachment-0001.htm>


More information about the jextract-dev mailing list