Provide 2GB of heap space to the Java VM when running D8 and R8
Test: m -j PRODUCT-aosp_arm64-eng core-oj
Test: Failing coverage targets in master branch now succeed
Bug: 115411919
Change-Id: I118e98797ac68e5ca21ef759d798fbb1b6a4264a
diff --git a/r8-compat-proguard b/r8-compat-proguard
index a82105f..47baf9d 100755
--- a/r8-compat-proguard
+++ b/r8-compat-proguard
@@ -53,9 +53,9 @@
exit 1
fi
-# By default, give r8 a max heap size of 1 gig. This can be overridden
+# By default, give r8 a max heap size of 2 gigs. This can be overridden
# by using a "-J" option (see below).
-defaultMx="-Xmx1024M"
+defaultMx="-Xmx2G"
# The following will extract any initial parameters of the form
# "-J<stuff>" from the command line and pass them to the Java
@@ -87,5 +87,3 @@
fi
exec java $javaOpts -jar "$jarpath" "$@"
-
-