forked from StarOpenSource/Engine
Shorten JVM options
This commit is contained in:
parent
0a30180d00
commit
3b1d60f41c
1 changed files with 4 additions and 4 deletions
|
@ -47,14 +47,14 @@ application {
|
|||
// -> JVM
|
||||
jvmArgs.add("-XX:+UnlockDiagnosticVMOptions")
|
||||
|
||||
if (hasProperty("run.args.logGC") && property("run.args.logGC") as String == "true")
|
||||
if (hasProperty("jvm.logGC") && property("jvm.logGC") as String == "true")
|
||||
jvmArgs.add("-Xlog:gc")
|
||||
if (hasProperty("run.args.logJITandAOT") && property("run.args.logJITandAOT") as String == "true") {
|
||||
if (hasProperty("jvm.logJITandAOT") && property("jvm.logJITandAOT") as String == "true") {
|
||||
jvmArgs.add("-XX:+PrintCompilation")
|
||||
jvmArgs.add("-XX:+PrintInlining")
|
||||
}
|
||||
if (hasProperty("run.args.garbageCollector"))
|
||||
when (property("run.args.garbageCollector")) {
|
||||
if (hasProperty("jvm.garbageCollector"))
|
||||
when (property("jvm.garbageCollector")) {
|
||||
"epsilon" -> jvmArgs.add("-XX:+UseEpsilonGC")
|
||||
"serial" -> jvmArgs.add("-XX:+UseSerialGC")
|
||||
"g1" -> jvmArgs.add("-XX:+UseG1GC")
|
||||
|
|
Loading…
Reference in a new issue