Skip to content
Browse files

bump up `ReservedCodeCacheSize` for 64bit jvm

  • Loading branch information...
1 parent 5275c48 commit d07d091f3c8f5b5400c6641c1595f54c82b9b225 @indrajitr indrajitr committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 liftsh
  2. +1 −1 liftsh.cmd
View
2 liftsh
@@ -9,7 +9,7 @@ fi
INTERNAL_OPTS="-Dfile.encoding=UTF-8 -Xmx768m -noverify -XX:ReservedCodeCacheSize=96m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:MaxPermSize=512m"
# Add 64bit specific option
-exec java -version 2>&1 | grep -q "64-Bit" && INTERNAL_OPTS="${INTERNAL_OPTS} -XX:+UseCompressedOops"
+exec java -version 2>&1 | grep -q "64-Bit" && INTERNAL_OPTS="${INTERNAL_OPTS} -XX:+UseCompressedOops -XX:ReservedCodeCacheSize=128m"
# Default options, if nothing is specified
DEFAULT_OPTS=""
View
2 liftsh.cmd
@@ -6,7 +6,7 @@ set INTERNAL_OPTS=-Dfile.encoding=UTF-8 -Xmx768m -noverify -XX:ReservedCodeCache
@REM Add 64bit specific option
java -version 2>&1 | find "64-Bit" >nul:
if not errorlevel 1 (
- set INTERNAL_OPTS=%INTERNAL_OPTS% -XX:+UseCompressedOops
+ set INTERNAL_OPTS=%INTERNAL_OPTS% -XX:+UseCompressedOops -XX:ReservedCodeCacheSize=128m
)
@REM Default options, if nothing is specified

0 comments on commit d07d091

Please sign in to comment.
Something went wrong with that request. Please try again.