From c33f79996f0a2d88a499326369a17c439ed38c9b Mon Sep 17 00:00:00 2001 From: Jordan Demeulenaere Date: Mon, 8 Aug 2022 11:40:15 +0200 Subject: [PATCH] Increase R8 max heap size to 4GB. Bug: 241220562 Test: Manual Change-Id: I983ded61b3a588e3d3b5c8e71596f80aaa2d59e6 --- java/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/config/config.go b/java/config/config.go index 1d4b242f9..3ca9bad3e 100644 --- a/java/config/config.go +++ b/java/config/config.go @@ -89,7 +89,7 @@ func init() { // D8 invocations are shorter lived, so we restrict their JIT tiering relative to R8. // Note that the `-JXX` prefix syntax is specific to the R8/D8 invocation wrappers. exportedVars.ExportStringListStaticVariable("D8Flags", append([]string{ - "-JXmx2048M", + "-JXmx4096M", "-JXX:+TieredCompilation", "-JXX:TieredStopAtLevel=1", }, dexerJavaVmFlagsList...))