[go: nahoru, domu]

[GH] set github gradle daemon memory to 5g

docker images have 7G so asking for 8G is pointless (idk if virtual memory works here or not).

We used to be fine with 512mb so 5g seems plenty even after the addition of tests.

Test: N/A
Bug: N/A

This is an imported pull request from https://github.com/androidx/androidx/pull/306.

Resolves #306
Github-Pr-Head-Sha: ab9948b0a373e60fd43fbe11b7796084a46b50cf
GitOrigin-RevId: 2ddd1bc8d9a6f147ab44df2a8e157eb36809d242
Change-Id: I529de973263b7f0687ddab2ce28a66072fce90c3
diff --git a/playground-common/androidx-shared.properties b/playground-common/androidx-shared.properties
index 958efb4..cf0008f 100644
--- a/playground-common/androidx-shared.properties
+++ b/playground-common/androidx-shared.properties
@@ -24,7 +24,7 @@
 # This separation is necessary to ensure gradle can read certain properties
 # at configuration time.
 
-org.gradle.jvmargs=-Xmx8g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true
+org.gradle.jvmargs=-Xmx4g -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -Dkotlin.daemon.jvm.options=-XX:MaxMetaspaceSize=1g -Dlint.nullness.ignore-deprecated=true
 android.useAndroidX=true
 # Disable features we do not use
 android.defaults.buildfeatures.aidl=false