Increase max heap size for javac to 2GB.

Compiling Dialer requires increasing the javac heap size above
1GB, probably due to the extensive use of annotation processors.
Increase it to 2GB.

Test: m -j ANDROID_COMPILE_WITH_JACK=false
Change-Id: I4dd3759a98ea915469e69f563dc49be8a25d518e
This commit is contained in:
Colin Cross
2017-03-22 20:41:14 -07:00
parent 32c89d462f
commit 0e785c79b8

View File

@@ -31,7 +31,7 @@ ifdef JAVAC_WRAPPER
endif
# Whatever compiler is on this system.
COMMON_JAVAC := $(JAVACC) -J-Xmx1024M $(common_jdk_flags)
COMMON_JAVAC := $(JAVACC) -J-Xmx2048M $(common_jdk_flags)
# Eclipse.
ifeq ($(CUSTOM_JAVA_COMPILER), eclipse)