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
diff --git a/tools/run-libcore-tests.py b/tools/run-libcore-tests.py
index 0f8eb59..c6958f1 100755
--- a/tools/run-libcore-tests.py
+++ b/tools/run-libcore-tests.py
@@ -428,6 +428,11 @@
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}")