On Mon, 4 Mar 2024 13:52:13 GMT, Jan Lahoda <jlah...@openjdk.org> wrote:

> Currently, JDK modules load by the bootstrap and platform ClassLoaders are 
> automatically granted the native access. I am working on an upgrade of JLine 
> inside the `jdk.internal.le` module, and I would like to replace the current 
> native bindings with FFM-based bindings (which are now somewhat provided by 
> JLine). But, for that, native access is needed for the `jdk.internal.le` 
> module. We could possibly move the module to the platform ClassLoader, but it 
> seems it might be better to have more control over which modules have the 
> native access.
> 
> This patch introduces an explicit list of modules that will automatically be 
> granted the native access. Note this patch is not yet intended to change the 
> end behavior - the list of modules granted native access is supposed to be 
> the same as modules in the boot and platform ClassLoaders.

This pull request has now been integrated.

Changeset: 27a03e0d
Author:    Jan Lahoda <jlah...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/27a03e0dc3e08094aebc3524f68617f7e7fb5c5d
Stats:     132 lines in 9 files changed: 106 ins; 9 del; 17 mod

8327218: Add an ability to specify modules which should have native access 
enabled

Co-authored-by: Maurizio Cimadamore <mcimadam...@openjdk.org>
Reviewed-by: mcimadamore, erikj, alanb, ihse

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

PR: https://git.openjdk.org/jdk/pull/18106

Reply via email to