Revert "Revert "Make the runtime default to not allowing JDWP again.""
This reverts commit f05c32008de16f669ea8323c4e17beef1df92d20.
We need to change the arguments passed from run-jdwp-tests.sh in some
situations.
Reason for revert: Fixed issue causing go/art-build to fail.
Test: ./art/tools/run-jdwp-tests.sh --mode=host
Bug: 72400560
Change-Id: I2be260479816e3a48df5cb65bba25858750df4db
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index 2cf614d..b512612 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -286,6 +286,10 @@
if [[ $mode != "ri" ]]; then
toolchain_args="--toolchain d8 --language CUR"
+ if [[ "x$with_jdwp_path" == "x" ]]; then
+ # Need to enable the internal jdwp implementation.
+ art_debugee="${art_debugee} -XjdwpProvider:internal"
+ fi
else
toolchain_args="--toolchain javac --language CUR"
fi