[foreign-jextract] RFR: 8263018: Improve API for lifecycle of native resources [v4]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Wed Mar 24 15:23:11 UTC 2021


> This contains the jextract changes required to support the new changes to the foreign memory access API.
> 
> The main change is that now NativeScope is co-generated by jextract (although, moving forward, I'm not sure how much value it adds, but that's for another day).
> 
> I had to fix the extracted libclang in few places (probably better to re-generate this code once this is pushed).
> 
> Tests needed changes to fix imports so that they pick up the generated NativeScope class.

Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:

  Add missing scope parameter

-------------

Changes:
  - all: https://git.openjdk.java.net/panama-foreign/pull/474/files
  - new: https://git.openjdk.java.net/panama-foreign/pull/474/files/65f7de7b..a56d27d1

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=474&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=474&range=02-03

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/panama-foreign/pull/474.diff
  Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/474/head:pull/474

PR: https://git.openjdk.java.net/panama-foreign/pull/474


More information about the panama-dev mailing list