diff options
author | 2017-11-13 15:44:51 -0800 | |
---|---|---|
committer | 2017-11-13 15:46:44 -0800 | |
commit | d3cf9ee2758f544c7e129c05d900c0579155559d (patch) | |
tree | f37434bbaa9b8634748a6227742030b4ff9b7096 /src/tools/android/java/com/google/devtools/build/android/BUILD | |
parent | 93c790037227289f99559ab7a512017a6ae1e1dd (diff) |
Open source ZipFilterBuilder for android_instrumentation_test
GITHUB: #903
RELNOTES: None.
PiperOrigin-RevId: 175600267
Diffstat (limited to 'src/tools/android/java/com/google/devtools/build/android/BUILD')
-rw-r--r-- | src/tools/android/java/com/google/devtools/build/android/BUILD | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/android/java/com/google/devtools/build/android/BUILD b/src/tools/android/java/com/google/devtools/build/android/BUILD index 6bf42f53e3..d563c772df 100644 --- a/src/tools/android/java/com/google/devtools/build/android/BUILD +++ b/src/tools/android/java/com/google/devtools/build/android/BUILD @@ -40,6 +40,10 @@ java_binary( java_binary( name = "ZipFilterAction", + # Memory consumption of SingleJar is about 250 bytes per entry in the output file. Unfortunately, + # the JVM tends to kill the process with an OOM long before we're at the limit. In the most + # recent example, 400 MB of memory was enough for about 500,000 entries. + jvm_flags = ["-Xmx1600m"], main_class = "com.google.devtools.build.android.ZipFilterAction", visibility = ["//visibility:private"], runtime_deps = [":android_builder_lib"], |