Integrated: 8342089: Require --enable-native-access to be the same between CDS dump time and run time
Matias Saavedra Silva
matsaave at openjdk.org
Tue Dec 3 16:21:55 UTC 2024
On Thu, 21 Nov 2024 19:41:42 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:
> Applications that use JNI or FFM need to use the `--enable-native-access` flag, or include the Enable-Native-Access attribute in their JAR files. Currently, the CDS archive cannot use optimized module handling when `--enable-native-access` is specified, so such applications do not support CDS.
>
> This patch no longer disables optimized module graph so long as the `--enable-native-access` is consistent between dump time and runtime. The modules list provided by the option is stored in the RO region of the CDS archive. Verified with tier 1-5 tests and a new regression test.
This pull request has now been integrated.
Changeset: 60bd73a5
Author: Matias Saavedra Silva <matsaave at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/60bd73a5957f26742e3c326cca0b45395b9470af
Stats: 331 lines in 10 files changed: 237 ins; 68 del; 26 mod
8342089: Require --enable-native-access to be the same between CDS dump time and run time
Reviewed-by: ccheung, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/22305
More information about the hotspot-runtime-dev
mailing list