Add java optimal GC options

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent 80f725bb60
commit d455444c66
  1. 10
      Java/scripts/build.sh
  2. 10
      Java/scripts/build2.sh
  3. 4
      Java/scripts/md5

@ -5,5 +5,13 @@ javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp $
printf "\n\n\nRunning Program...\n\n" printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd) ORIGINAL_LOC=$(pwd)
cd $OUT_DIR cd $OUT_DIR
java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@" if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
return
fi
if java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
return
fi
java ${CUSTOM_PARAMS} -cp .:../lib/bin/ -XX:+PrintCommandLineFlags -Djava.library.path="${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh ${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh

@ -5,5 +5,13 @@ javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp $
printf "\n\n\nRunning Program...\n\n" printf "\n\n\nRunning Program...\n\n"
ORIGINAL_LOC=$(pwd) ORIGINAL_LOC=$(pwd)
cd $OUT_DIR cd $OUT_DIR
java ${CUSTOM_PARAMS} -cp ".;../lib/bin/ " "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@" if java ${CUSTOM_PARAMS} -cp ".;../lib/bin/" -XX:+UseZGC "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
return
fi
if java ${CUSTOM_PARAMS} -cp ".;../lib/bin/" -XX:+UnlockExperimentalVMOptions -XX:+UseZGC "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh
return
fi
java ${CUSTOM_PARAMS} -cp ".;../lib/bin/" -XX:+PrintCommandLineFlags "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@"
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh ${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh

@ -1,5 +1,5 @@
build2.sh:8e21e7c419a3c3974ab32902802a8c7a - build2.sh:cf159b0f2193ff280c455a7547126073 -
build.sh:b247061c83c39b1bb78ac7642534ba2c - build.sh:5a48a79ccbb92272c26bc461833586dd -
clean.sh:668a2f9b568c55f6a044a509315032f6 - clean.sh:668a2f9b568c55f6a044a509315032f6 -
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 - commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 -
jar2.sh:7977fc138ee5db798d08c34734f0be93 - jar2.sh:7977fc138ee5db798d08c34734f0be93 -

Loading…
Cancel
Save