summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2019-09-19 21:49:31 +0100
committer David Srbecky <dsrbecky@google.com> 2019-09-20 14:11:49 +0000
commit6df588bdd8d5b5751af851b511210bc4753cf7cc (patch)
tree79e56804ea2784d1028fcfa8f36cf08a5a501f0e
parentb4abe0a193871684ec712fc00b49e9764978b7c9 (diff)
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
-rwxr-xr-xtest/etc/run-test-jar3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar
index 70b996722e..32cf1a0a54 100755
--- a/test/etc/run-test-jar
+++ b/test/etc/run-test-jar
@@ -909,6 +909,9 @@ if [ "$PREBUILD" = "y" ]; then
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