[foreign-memaccess+abi] Integrated: 8263459: Add better support for restricted methods
Athijegannathan Sundararajan
sundar at openjdk.java.net
Mon Mar 29 15:05:47 UTC 2021
On Tue, 23 Mar 2021 14:01:09 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: f2530209
Author: Athijegannathan Sundararajan <sundar at openjdk.org>
URL: https://git.openjdk.java.net/panama-foreign/commit/f2530209
Stats: 725 lines in 54 files changed: 641 ins; 37 del; 47 mod
8263459: Add better support for restricted methods
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/472
More information about the panama-dev
mailing list