This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new e517652c8ad HDDS-15668. [JDK24] Add --enable-native-access=ALL-UNNAMED
JVM option (#10616)
e517652c8ad is described below
commit e517652c8adcfef3472f085701318971342722f0
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sat Jun 27 07:09:05 2026 +0200
HDDS-15668. [JDK24] Add --enable-native-access=ALL-UNNAMED JVM option
(#10616)
---
hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
b/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
index 15d7916226c..ce364d1cdec 100755
--- a/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
+++ b/hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh
@@ -1447,6 +1447,9 @@ function ozone_set_module_access_args
fi
# populate JVM args based on java version
+ if [[ "${JAVA_MAJOR_VERSION}" -ge 24 ]]; then
+ OZONE_MODULE_ACCESS_ARGS="${OZONE_MODULE_ACCESS_ARGS}
--enable-native-access=ALL-UNNAMED"
+ fi
if [[ "${JAVA_MAJOR_VERSION}" -ge 23 ]]; then
# allow sun.misc.Unsafe until protobuf-java moves away from it
# see: https://github.com/protocolbuffers/protobuf/issues/20760
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]