OSDN Git Service

Disable osr while investigating flakiness.
authorNicolas Geoffray <ngeoffray@google.com>
Sun, 7 Feb 2016 13:13:33 +0000 (13:13 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Sun, 7 Feb 2016 13:13:33 +0000 (13:13 +0000)
org.apache.harmony.tests.java.util.TreeMapRndTest#testPutAll fails
in debug mode.

Change-Id: Idd15b25a236d4e5d3eb6d83ac0c038c1e10ee55a

runtime/jit/jit.cc
test/Android.run-test.mk

index 54b65e6..e38a684 100644 (file)
@@ -36,6 +36,8 @@
 namespace art {
 namespace jit {
 
+static constexpr bool kEnableOnStackReplacement = false;
+
 JitOptions* JitOptions::CreateFromRuntimeArguments(const RuntimeArgumentMap& options) {
   auto* jit_options = new JitOptions;
   jit_options->use_jit_ = options.GetOrDefault(RuntimeArgumentMap::UseJIT);
@@ -274,6 +276,10 @@ bool Jit::MaybeDoOnStackReplacement(Thread* thread,
                                     uint32_t dex_pc,
                                     int32_t dex_pc_offset,
                                     JValue* result) {
+  if (!kEnableOnStackReplacement) {
+    return false;
+  }
+
   Jit* jit = Runtime::Current()->GetJit();
   if (jit == nullptr) {
     return false;
index e6ffd2e..f5ee87e 100644 (file)
@@ -434,7 +434,9 @@ TEST_ART_BROKEN_INTERPRETER_RUN_TESTS :=
 # Known broken tests for the JIT.
 # CFI unwinding expects managed frames, and the test does not iterate enough to even compile. JIT
 # also uses Generic JNI instead of the JNI compiler.
+# 570 is disabled while investigating osr flakiness.
 TEST_ART_BROKEN_JIT_RUN_TESTS := \
+  570-checker-osr \
   137-cfi
 
 ifneq (,$(filter jit,$(COMPILER_TYPES)))