Merge pull request #282 from eed3si9n/wip/gc

Drop -XX:+UseParallelGC
This commit is contained in:
eugene yokota 2019-09-19 16:15:11 -04:00 committed by GitHub
commit 577cdb856d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 23 deletions

View File

@ -185,21 +185,6 @@ addDefaultMemory() {
fi
}
get_gc_opts () {
local older_than_9=$(( $java_version < 9 ))
if [[ "$older_than_9" == "1" ]]; then
# don't need to worry about gc
echo ""
elif [[ "${JAVA_OPTS}" =~ Use.*GC ]] || [[ "${JAVA_TOOL_OPTIONS}" =~ Use.*GC ]] || [[ "${SBT_OPTS}" =~ Use.*GC ]] ; then
# GC arg has been passed in - don't change
echo ""
else
# Java 9+ so revert to old
echo "-XX:+UseParallelGC"
fi
}
require_arg () {
local type="$1"
local opt="$2"
@ -381,7 +366,6 @@ run() {
else
# run sbt
execRunner "$java_cmd" \
$(get_gc_opts) \
"${java_args[@]}" \
"${sbt_options[@]}" \
-jar "$sbt_jar" \

View File

@ -198,13 +198,6 @@ if /I %JAVA_VERSION% GEQ 9 (
"%_JAVACMD%" %_JAVA_OPTS% %SBT_OPTS% -jar "!rtexport!" "!java9_rt!"
)
set _JAVA_OPTS=!_JAVA_OPTS! -Dscala.ext.dirs="!java9_ext!"
rem check to see if a GC has been set in the opts
echo !_JAVA_OPTS! | findstr /r "Use.*GC" >nul
if ERRORLEVEL 1 (
rem don't have a GC set - revert to old GC
set _JAVA_OPTS=!_JAVA_OPTS! -XX:+UseParallelGC
)
)
exit /B 0