Skip to content

Commit

Permalink
[ISSUE apache#8808] Resolve unsupported 'UseBiasedLocking' VM Option …
Browse files Browse the repository at this point in the history
…for JDK21 (apache#8809)
  • Loading branch information
taomaree authored Nov 6, 2024
1 parent 43f3c2b commit e281697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions distribution/bin/runbroker.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ if %JAVA_MAJOR_VERSION% lss 17 (
set "JAVA_OPT=%JAVA_OPT% -XX:-OmitStackTraceInFastThrow"
set "JAVA_OPT=%JAVA_OPT% -XX:+AlwaysPreTouch"
set "JAVA_OPT=%JAVA_OPT% -XX:MaxDirectMemorySize=15g"
set "JAVA_OPT=%JAVA_OPT% -XX:-UseLargePages -XX:-UseBiasedLocking"
set "JAVA_OPT=%JAVA_OPT% -XX:-UseLargePages -XX:-UseBiasedLocking -XX:+IgnoreUnrecognizedVMOptions"
set "JAVA_OPT=%JAVA_OPT% %JAVA_OPT_EXT% -cp "%CLASSPATH%""
)

"%JAVA%" %JAVA_OPT% %*
"%JAVA%" %JAVA_OPT% %*
2 changes: 1 addition & 1 deletion distribution/bin/runbroker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ choose_gc_options
JAVA_OPT="${JAVA_OPT} -XX:-OmitStackTraceInFastThrow"
JAVA_OPT="${JAVA_OPT} -XX:+AlwaysPreTouch"
JAVA_OPT="${JAVA_OPT} -XX:MaxDirectMemorySize=15g"
JAVA_OPT="${JAVA_OPT} -XX:-UseLargePages -XX:-UseBiasedLocking"
JAVA_OPT="${JAVA_OPT} -XX:-UseLargePages -XX:-UseBiasedLocking -XX:+IgnoreUnrecognizedVMOptions"
#JAVA_OPT="${JAVA_OPT} -Xdebug -Xrunjdwp:transport=dt_socket,address=9555,server=y,suspend=n"
JAVA_OPT="${JAVA_OPT} ${JAVA_OPT_EXT}"
JAVA_OPT="${JAVA_OPT} -cp ${CLASSPATH}"
Expand Down

0 comments on commit e281697

Please sign in to comment.