[foreign-memaccess+abi] RFR: 8263459: Add better support for restricted methods [v4]

Jorn Vernee jvernee at openjdk.java.net
Mon Mar 29 11:37:38 UTC 2021


On Mon, 29 Mar 2021 11:33:00 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.
>
> Athijegannathan Sundararajan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   minimal hotspot (only arguments.cpp for new command line option) and JDK changes.

src/hotspot/share/classfile/javaClasses.cpp line 2920:

> 2918: 
> 2919: 
> 2920: // java_lang_AccessibleObject

Spurious change?

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

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


More information about the panama-dev mailing list