Skip to content

Commit b975280

Browse files
Sam Maiercopybara-github
authored andcommitted
R8: Up java heap size to 4G
Also include fix for my git cl upload issues. Change-Id: I9384983ac3d8660c707b2d0184143279517758c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6258149 Reviewed-by: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Andrew Grieve <agrieve@chromium.org> Auto-Submit: Sam Maier <smaier@chromium.org> Commit-Queue: Sam Maier <smaier@chromium.org> Cr-Commit-Position: refs/heads/main@{#1419309} NOKEYCHECK=True GitOrigin-RevId: e573dcd62b3388834f7a01de0c66a66a1835b67f
1 parent 2eae3e1 commit b975280

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

android/gyp/check_for_missing_direct_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import action_helpers # build_utils adds //build to sys.path.
2020

2121
_SRC_PATH = pathlib.Path(build_utils.DIR_SOURCE_ROOT).resolve()
22-
sys.path.append(str(_SRC_PATH / 'build/gn_ast'))
22+
sys.path.insert(1, str(_SRC_PATH / 'build/gn_ast'))
2323
from gn_editor import NO_VALID_GN_STR
2424

2525

android/gyp/proguard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ def _OptimizeWithR8(options, config_paths, libraries, dynamic_config_data):
330330
tmp_output)
331331
base_context = split_contexts_by_name['base']
332332

333-
# R8 OOMs with xmx=2G.
334-
cmd = build_utils.JavaCmd(xmx='3G') + [
333+
# R8 OOMs with xmx=3G.
334+
cmd = build_utils.JavaCmd(xmx='4G') + [
335335
# Allows -whyareyounotinlining, which we don't have by default, but
336336
# which is useful for one-off queries.
337337
'-Dcom.android.tools.r8.experimental.enablewhyareyounotinlining=1',

0 commit comments

Comments
 (0)