RFR: 8346778: Enable native access should work with the source launcher [v2]

Alan Bateman alanb at openjdk.org
Thu Jan 9 20:09:35 UTC 2025


On Wed, 8 Jan 2025 20:29:03 GMT, Christian Stein <cstein at openjdk.org> wrote:

>> Please review this change request enabling native access in source launch mode when using a modular setup.
>> 
>> The change comes in two parts:
>> 1. Prevent warnings of unknown modules being emitted from module bootstrap for user module not being present in the boot layer: `java.c` and `ModuleBootstrap.java`
>> 2. Enable native access in source module(s) and also user modules on the module path as requested by `--enable-native-access` via the `ModuleLayer.Controller` API - and emit warning for unknown modules: `MemoryContext.java`
>> 
>> _Testing of tier1..3 is in progress..._
>
> Christian Stein has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Ignore already handled `ALL-UNNAMED` name

Do you expect any other options that the source launcher might need to handle? Right now, there are warnings when the module or package name is not in modules in the boot layer. There other CLI options would be very advanced so assume not.

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

PR Comment: https://git.openjdk.org/jdk/pull/22930#issuecomment-2581155710


More information about the compiler-dev mailing list