Build: Kotlin daemon 6g -> 8g, switch to G1GC, disable GC overhead limit

Release builds with K2 FIR on this codebase hit GC overhead limit
at 6G. 8G + G1 leaves plenty of headroom on the 24G host.
This commit is contained in:
shiaho
2026-05-05 10:39:28 +08:00
parent 4df127d709
commit 0c471792c2
+1 -1
View File
@@ -7,7 +7,7 @@ org.gradle.daemon=true
org.gradle.parallel=false
org.gradle.caching=true
kotlin.daemon.jvmargs=-Xmx6g -XX:MaxMetaspaceSize=1024m
kotlin.daemon.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=1024m -XX:+UseG1GC -XX:-UseGCOverheadLimit -XX:+HeapDumpOnOutOfMemoryError
kotlin.incremental=true
org.gradle.configuration-cache=false