summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2022-11-14 10:52:15 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-11-14 12:50:54 +0000
commit8858dc23a52be166dc2c7a6a805db52c3f552c04 (patch)
tree0a6fd2fa1e8d12d27100395dd647b10ac2234b5d
parent3b7475b28db56952a821e4f6cbedf514dd284dc4 (diff)
Limit the per runtime memory for Fugu to 128MB
Bug: 258171768 Test: run-libcore-tests.sh --mode host --no-getrandom --variant X32 Change-Id: I8cbf512bb3924904f8ce033bd84020581eb4fe12
-rwxr-xr-xtools/run-libcore-tests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/run-libcore-tests.py b/tools/run-libcore-tests.py
index 0f8eb59374..c6958f1b6c 100755
--- a/tools/run-libcore-tests.py
+++ b/tools/run-libcore-tests.py
@@ -428,6 +428,11 @@ def get_vogar_command(test_name):
if args.debug:
cmd.append("--vm-arg -XXlib:libartd.so --vm-arg -XX:SlowDebug=true")
+ # The only device in go/art-buildbot without getrandom is fugu. We limit the amount of memory
+ # per runtime for fugu to avoid low memory killer, fugu has 4-cores 1GB RAM (b/258171768).
+ if not args.getrandom:
+ cmd.append("--vm-arg -Xmx128M")
+
if args.mode == "device":
if ART_TEST_CHROOT:
cmd.append(f"--chroot {ART_TEST_CHROOT} --device-dir=/tmp/vogar/test-{test_name}")