Revert^2 "Update run-test script to pass --Xjitthreshold:0 for jvmti tests"

This reverts commit 26db016b9462cbaea158ec4e46dd95319cd3666f.

Reason for revert: Reland
commit 0bc369b6a7c6d380876574f5b1f7fe3aa78839fb by skipping known
failures

Test: testrunner.py --host --debug --cdex-fast --jit --redefine-stress --debuggable
Change-Id: Ib9dbc2d2a0fcd58dea42d662b5ff860752a00602
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar
index 9d7dc7e..cc22e6e 100755
--- a/test/etc/run-test-jar
+++ b/test/etc/run-test-jar
@@ -644,6 +644,12 @@
     # We used to add flags here that made the runtime debuggable but that is not
     # needed anymore since the plugin can do it for us now.
     FLAGS="${FLAGS} -Xplugin:${plugin}"
+
+    # For jvmti tests, set the threshold of compilation to 0, so we jit on the first
+    # use to provide better test coverage for jvmti + jit. This means we won't run
+    # the default --jit configuration but it is not too important test scenario for
+    # jvmti tests. This is art specific flag, so don't use it with jvm.
+    FLAGS="${FLAGS} -Xjitthreshold:0"
   fi
 fi
 
diff --git a/test/knownfailures.json b/test/knownfailures.json
index e179eb7..89deae5 100644
--- a/test/knownfailures.json
+++ b/test/knownfailures.json
@@ -1459,5 +1459,16 @@
                         "and no longer takes effect"],
         "bug": "b/203171409",
         "variant": "target | host"
+    },
+    {
+        "tests": ["004-ReferenceMap"],
+        "variant": "redefine-stress & jit",
+        "description": ["Test expects specific dex pcs which breaks with redefine-stress"]
+    },
+    {
+        "tests": ["597-deopt-invoke-stub"],
+        "variant": "redefine-stress & jit | jvmti-stress & jit",
+        "description": ["Test expects few methods to be interpreted but jvmti enables",
+		        "jit-on-first-use which breaks this expectation"]
     }
 ]