From f48c885b27d10bb8cf2f377b8f12fb47bdde145c Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Wed, 13 Sep 2023 14:24:03 -0700 Subject: [PATCH] Increase ThreadStackSize --- rules/android_binary_internal/r8.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/android_binary_internal/r8.bzl b/rules/android_binary_internal/r8.bzl index 9fd36a5af..0d5a1c3f0 100644 --- a/rules/android_binary_internal/r8.bzl +++ b/rules/android_binary_internal/r8.bzl @@ -104,7 +104,7 @@ def process_r8(ctx, validation_ctx, jvm_ctx, packaged_resources_ctx, build_info_ inputs = depset([android_jar, deploy_jar] + proguard_specs, transitive = [neverlink_jars]), outputs = [dexes_zip, proguard_mappings_file], mnemonic = "AndroidR8", - jvm_flags = ["-Xmx8G"], + jvm_flags = ["-Xmx8G", "-XX:ThreadStackSize=2048"], progress_message = "R8 Optimizing, Desugaring, and Dexing %{label}", )