From 6df588bdd8d5b5751af851b511210bc4753cf7cc Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Thu, 19 Sep 2019 21:49:31 +0100 Subject: 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 --- test/etc/run-test-jar | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 -- cgit v1.2.3-59-g8ed1b