Skip to content

Commit

Permalink
Bug 1727438 - Increase java max heap to 16G. r=nalexander
Browse files Browse the repository at this point in the history
Looks like 6G is not enough for an ASAN build when updating the gradle version.
I tried 8G on try but that's not enough either.

Differential Revision: https://phabricator.services.mozilla.com/D123970
  • Loading branch information
agi committed Aug 30, 2021
1 parent c859adb commit d15794b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx6656M
org.gradle.jvmargs=-Xmx16384M
android.useAndroidX=true
3 changes: 3 additions & 0 deletions mobile/android/examples/messaging_example/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
javaMaxHeapSize "16g"
}
defaultConfig {
applicationId "org.mozilla.geckoview.example.messaging"
targetSdkVersion project.ext.targetSdkVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
javaMaxHeapSize "16g"
}
defaultConfig {
applicationId "org.mozilla.geckoview.example.messaging"
targetSdkVersion project.ext.targetSdkVersion
Expand Down
2 changes: 1 addition & 1 deletion mobile/android/geckoview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ android {
}

dexOptions {
javaMaxHeapSize "6g"
javaMaxHeapSize "16g"
}

lintOptions {
Expand Down
2 changes: 1 addition & 1 deletion mobile/android/geckoview_example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android {
}

dexOptions {
javaMaxHeapSize "6g"
javaMaxHeapSize "16g"
}

buildTypes {
Expand Down
2 changes: 1 addition & 1 deletion mobile/android/gradle/dotgradle-offline/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Per https://docs.gradle.org/current/userguide/build_environment.html, this
// overrides the gradle.properties in topsrcdir.
org.gradle.daemon=false
org.gradle.jvmargs=-Xmx6656M
org.gradle.jvmargs=-Xmx16384M
2 changes: 1 addition & 1 deletion mobile/android/gradle/dotgradle-online/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Per https://docs.gradle.org/current/userguide/build_environment.html, this
// overrides the gradle.properties in topsrcdir.
org.gradle.daemon=false
org.gradle.jvmargs=-Xmx6656M
org.gradle.jvmargs=-Xmx16384M

0 comments on commit d15794b

Please sign in to comment.