[foreign-memaccess+abi] RFR: 8263459: Add better support for restricted methods [v6]
Athijegannathan Sundararajan
sundar at openjdk.java.net
Mon Mar 29 13:14:01 UTC 2021
> When a Panama native restricted method is called, we will no require that the caller module (which could be ALL-UNNAMED) has been whitelisted accordingly, on the command line, using this flag:
>
> --enable-native-access=<modulename>
>
> In other words, this work replaces the hacky -Dforeign.restricted=permit property with a system which works in tandem with the Java module system.
>
> The current PR includes subset of the earlier PR
>
> https://github.com/openjdk/panama-foreign/pull/471
>
> The 'fail fast' aspect (jlink plugin to mark "NativeAccess" calling modules and issuing error if those modules were not mentioned in --enable-native-access) has been removed in this new PR.
Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision:
removed @NativeAccess for a non-API method. Added missing @NativeAccess for an API method.
-------------
Changes:
- all: https://git.openjdk.java.net/panama-foreign/pull/472/files
- new: https://git.openjdk.java.net/panama-foreign/pull/472/files/6bca7fa3..35fd3295
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=472&range=05
- incr: https://webrevs.openjdk.java.net/?repo=panama-foreign&pr=472&range=04-05
Stats: 3 lines in 2 files changed: 1 ins; 2 del; 0 mod
Patch: https://git.openjdk.java.net/panama-foreign/pull/472.diff
Fetch: git fetch https://git.openjdk.java.net/panama-foreign pull/472/head:pull/472
PR: https://git.openjdk.java.net/panama-foreign/pull/472
More information about the panama-dev
mailing list