diff options
author | 2020-07-13 13:23:00 -0700 | |
---|---|---|
committer | 2020-07-14 22:41:01 +0000 | |
commit | e22217956f726fd2e7c962fc53b9f23ff4c61d46 (patch) | |
tree | f0d684b9becbdf9961bd748148d7dcabbc85d47a /java/lint.go | |
parent | 3058878cc76be4f10aa49f3aa7c29ac283109613 (diff) |
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
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/lint.go b/java/lint.go index 6fbef18c7..fc65c0b28 100644 --- a/java/lint.go +++ b/java/lint.go @@ -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). |