OSDN Git Service

Make test-art pass with heap reference poisoning enabled.
authorHiroshi Yamauchi <yamauchi@google.com>
Wed, 19 Mar 2014 19:57:56 +0000 (12:57 -0700)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 19 Mar 2014 19:57:56 +0000 (12:57 -0700)
Heap reference poisoning is currently interpreter only. This change
disables one compiler driver test that actually invokes compiled code
if heap reference poisoning is enabled.

Bug: 12687968
Change-Id: Ia9516f4067d84e9a4de50d9ff44cfbe38f282d16

compiler/driver/compiler_driver_test.cc
runtime/common_runtime_test.h

index 949fade..86034c8 100644 (file)
@@ -146,6 +146,7 @@ TEST_F(CompilerDriverTest, DISABLED_LARGE_CompileDexLibCore) {
 
 TEST_F(CompilerDriverTest, AbstractMethodErrorStub) {
   TEST_DISABLED_FOR_PORTABLE();
+  TEST_DISABLED_FOR_HEAP_REFERENCE_POISONING();
   jobject class_loader;
   {
     ScopedObjectAccess soa(Thread::Current());
index cfe808c..4b50cf4 100644 (file)
@@ -341,6 +341,13 @@ class CheckJniAbortCatcher {
     return; \
   }
 
+// TODO: When heap reference poisoning works with the compiler, get rid of this.
+#define TEST_DISABLED_FOR_HEAP_REFERENCE_POISONING() \
+  if (kPoisonHeapReferences) { \
+    printf("WARNING: TEST DISABLED FOR HEAP REFERENCE POISONING\n"); \
+    return; \
+  }
+
 }  // namespace art
 
 namespace std {