Generate mini-debug-info when running JIT tests.
Ensure we get better backtraces from tests and make them profitable.
Test: manual (check that gcstress test can get backtraces on host)
Change-Id: Ia077ef70385b1e398e9045a86d5c727617c3f628
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar
index 70b9967..32cf1a0 100755
--- a/test/etc/run-test-jar
+++ b/test/etc/run-test-jar
@@ -909,6 +909,9 @@
dex2oat_cmdline="${dex2oat_cmdline} --instruction-set-features=${INSTRUCTION_SET_FEATURES}"
fi
+ # Enable mini-debug-info for JIT (if JIT is used).
+ FLAGS="$FLAGS -Xcompiler-option --generate-mini-debug-info"
+
# Add in a timeout. This is important for testing the compilation/verification time of
# pathological cases.
# Note: as we don't know how decent targets are (e.g., emulator), only do this on the host for