Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2221795 authored by Colin Cross's avatar Colin Cross
Browse files

Increase heap size for lint tool

We perodically get java.lang.OutOfMemoryError: Java heap space errors
on the build servers, increase the lint heap size from 2GB to 3GB.

Bug: 161151611
Test: m lint-check
Change-Id: Id6cb97871e01780ac8761647c6d3a504fbfb49f2
parent 3058878c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -231,7 +231,7 @@ func (l *linter) lint(ctx android.ModuleContext) {

	rule.Command().
		Text("(").
		Flag("JAVA_OPTS=-Xmx2048m").
		Flag("JAVA_OPTS=-Xmx3072m").
		FlagWithArg("ANDROID_SDK_HOME=", homeDir.String()).
		FlagWithInput("SDK_ANNOTATIONS=", annotationsZipPath).
		FlagWithInput("LINT_OPTS=-DLINT_API_DATABASE=", apiVersionsXMLPath).