From 4d38496a9c03c9bf17b4e14d87f9855edddf844a Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 12 Oct 2022 18:10:49 +0800 Subject: [PATCH] Use the default G1GC on JDK 17+ Remove -XX:+UseParallelGC and use the default garbage collector as the improvements are minimal on JDK 17+ --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 22a79e8b01..e052e2c58b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ kotlin.code.style=official kotlin.incremental.useClasspathSnapshot=true org.gradle.caching=true -org.gradle.jvmargs=-Xmx4g -XX:+UseParallelGC -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8 org.gradle.parallel=true # https://docs.gradle.org/7.4/userguide/configuration_cache.html org.gradle.unsafe.configuration-cache=true