Skip to content

Commit

Permalink
Bug 1786164 - Add more Gradle JVM memory flags. r=geckoview-reviewers…
Browse files Browse the repository at this point in the history
…,jonalmeida

See mozilla-mobile/fenix#26542 for more discussion.
Also specify a lower maximum heap size more in line with other projects and
remove some redundant settings in other gradle.properties files.

Differential Revision: https://phabricator.services.mozilla.com/D155179
  • Loading branch information
rvandermeulen committed Aug 31, 2022
1 parent 450ee76 commit 9982083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx32768M
# Be careful when changing org.gradle.jvmargs below. It will clobber
# any defaults set by Gradle: https://github.com/gradle/gradle/issues/19750
org.gradle.jvmargs=-Xmx8g -Xms2g -XX:MaxMetaspaceSize=6g
android.useAndroidX=true
1 change: 0 additions & 1 deletion mobile/android/gradle/dotgradle-offline/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Per https://docs.gradle.org/current/userguide/build_environment.html, this
// overrides the gradle.properties in topsrcdir.
org.gradle.daemon=false
org.gradle.jvmargs=-Xmx32768M
1 change: 0 additions & 1 deletion mobile/android/gradle/dotgradle-online/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Per https://docs.gradle.org/current/userguide/build_environment.html, this
// overrides the gradle.properties in topsrcdir.
org.gradle.daemon=false
org.gradle.jvmargs=-Xmx32768M

0 comments on commit 9982083

Please sign in to comment.