CLI: increase default value of Xms option
According to the preloader's "-measure" option, just the raw class files occupy ~50 Mb during compilation of hello world (~55 Mb for K2). So 32M is a very outdated value for Xms. This change sets it to something more reasonable to hopefully avoid unnecessary GCs and thus help with performance and potentially with OOMs (KT-58690). #KT-58690
This commit is contained in:
committed by
Space Team
parent
0ae95b39c3
commit
e4d1e6246e
@@ -39,7 +39,7 @@ if $cygwin; then
|
||||
KOTLIN_HOME=`cygpath --windows --short-name "$KOTLIN_HOME"`
|
||||
fi
|
||||
|
||||
[ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
|
||||
[ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms128M"
|
||||
|
||||
declare -a java_args
|
||||
declare -a kotlin_args
|
||||
|
||||
Reference in New Issue
Block a user