Skip to content

Commit aa435e1

Browse files
authored
SOLR-17803: Fix native access warning when using MemorySegmentIndexInput (#3360)
1 parent e759c15 commit aa435e1

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

solr/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ Other Changes
383383
instead of LinkedHashMap. Intended to aid in 10.x compatibility. Enable via sys prop: solr.solrj.javabin.readMapAsNamedList=true
384384
(Renato Haeberli, David Smiley)
385385

386+
* SOLR-17803: Fix native access warning when using MemorySegmentIndexInput (Kevin Risden)
387+
386388
================== 9.8.1 ==================
387389
Bug Fixes
388390
---------------------

solr/bin/solr

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,8 @@ function start_solr() {
13121312

13131313
# Add vector optimizations module
13141314
SCRIPT_SOLR_OPTS+=("--add-modules" "jdk.incubator.vector")
1315+
# Support native madvise for MemorySegmentIndexInputProvider
1316+
SCRIPT_SOLR_OPTS+=("--enable-native-access=ALL-UNNAMED")
13151317

13161318
# shellcheck disable=SC2164
13171319
SOLR_START_OPTS=('-server' "${JAVA_MEM_OPTS[@]}" "${GC_TUNE_ARR[@]}" "${GC_LOG_OPTS[@]}" "${IP_ACL_OPTS[@]}" \

solr/bin/solr.cmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,9 @@ IF "%GC_TUNE%"=="" (
10321032
REM Add vector optimizations module
10331033
set SCRIPT_SOLR_OPTS=%SCRIPT_SOLR_OPTS% --add-modules jdk.incubator.vector
10341034

1035+
REM Support native madvise for MemorySegmentIndexInputProvider
1036+
set SCRIPT_SOLR_OPTS=%SCRIPT_SOLR_OPTS% --enable-native-access=ALL-UNNAMED
1037+
10351038
IF "%GC_LOG_OPTS%"=="" (
10361039
set GC_LOG_OPTS="-Xlog:gc*"
10371040
)

0 commit comments

Comments
 (0)