RFR: 7903597: Slim down RuntimeHelper [v3]
Jorn Vernee
jvernee at openjdk.org
Mon Dec 4 14:36:32 UTC 2023
> Remove some of the helper methods in RuntimeHelper. They can be moved inline in the generated code.
>
> Also: I've elected to move the `System.load(Library)` directives we generated inside RuntimeHelper into the first header class, in order to have it more localized to the actual code that a user sees. That also makes RuntimeHelper more 'dumb'. Only the package declaration is now injected into the template, which makes it easier for users to combined multiple extraction runs (they can just discard one of the generated RuntimeHelpers).
Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision:
drop unused method
-------------
Changes:
- all: https://git.openjdk.org/jextract/pull/150/files
- new: https://git.openjdk.org/jextract/pull/150/files/d229455b..b87c2a5d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jextract&pr=150&range=02
- incr: https://webrevs.openjdk.org/?repo=jextract&pr=150&range=01-02
Stats: 4 lines in 1 file changed: 0 ins; 4 del; 0 mod
Patch: https://git.openjdk.org/jextract/pull/150.diff
Fetch: git fetch https://git.openjdk.org/jextract.git pull/150/head:pull/150
PR: https://git.openjdk.org/jextract/pull/150
More information about the jextract-dev
mailing list