This is an automated email from the ASF dual-hosted git repository.
krisden pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new aa435e1aacc SOLR-17803: Fix native access warning when using
MemorySegmentIndexInput (#3360)
aa435e1aacc is described below
commit aa435e1aacc2304a4b2443f2591446cb7ebbde6d
Author: Kevin Risden <[email protected]>
AuthorDate: Mon Jun 30 09:21:47 2025 -0400
SOLR-17803: Fix native access warning when using MemorySegmentIndexInput
(#3360)
---
solr/CHANGES.txt | 2 ++
solr/bin/solr | 2 ++
solr/bin/solr.cmd | 3 +++
3 files changed, 7 insertions(+)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index f0451fb5cd4..8300dd5b2b8 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -383,6 +383,8 @@ Other Changes
instead of LinkedHashMap. Intended to aid in 10.x compatibility. Enable
via sys prop: solr.solrj.javabin.readMapAsNamedList=true
(Renato Haeberli, David Smiley)
+* SOLR-17803: Fix native access warning when using MemorySegmentIndexInput
(Kevin Risden)
+
================== 9.8.1 ==================
Bug Fixes
---------------------
diff --git a/solr/bin/solr b/solr/bin/solr
index c3b341eac0b..7249ec576c4 100755
--- a/solr/bin/solr
+++ b/solr/bin/solr
@@ -1312,6 +1312,8 @@ function start_solr() {
# Add vector optimizations module
SCRIPT_SOLR_OPTS+=("--add-modules" "jdk.incubator.vector")
+ # Support native madvise for MemorySegmentIndexInputProvider
+ SCRIPT_SOLR_OPTS+=("--enable-native-access=ALL-UNNAMED")
# shellcheck disable=SC2164
SOLR_START_OPTS=('-server' "${JAVA_MEM_OPTS[@]}" "${GC_TUNE_ARR[@]}"
"${GC_LOG_OPTS[@]}" "${IP_ACL_OPTS[@]}" \
diff --git a/solr/bin/solr.cmd b/solr/bin/solr.cmd
index f0efa548b16..ecb04647ad5 100755
--- a/solr/bin/solr.cmd
+++ b/solr/bin/solr.cmd
@@ -1032,6 +1032,9 @@ IF "%GC_TUNE%"=="" (
REM Add vector optimizations module
set SCRIPT_SOLR_OPTS=%SCRIPT_SOLR_OPTS% --add-modules jdk.incubator.vector
+REM Support native madvise for MemorySegmentIndexInputProvider
+set SCRIPT_SOLR_OPTS=%SCRIPT_SOLR_OPTS% --enable-native-access=ALL-UNNAMED
+
IF "%GC_LOG_OPTS%"=="" (
set GC_LOG_OPTS="-Xlog:gc*"
)