OSDN Git Service

ART: unblock compiler tests on MIPS
authorAlexey Frunze <Alexey.Frunze@imgtec.com>
Wed, 24 Aug 2016 06:42:54 +0000 (23:42 -0700)
committerAlexey Frunze <Alexey.Frunze@imgtec.com>
Wed, 24 Aug 2016 06:48:34 +0000 (23:48 -0700)
The DCHECK() that's removed here causes most of compiler tests to
fail on MIPS. The issue is introduced with the recent changes in
the string dex cache.

Test: booted MIPS32 in QEMU
Test: test-art-target-run-test-optimizing on CI20

Change-Id: I7fd45fa0b6d64fbc553f6aeaa6dac7345c885fe4

runtime/mirror/dex_cache.h

index 770c45d..4ddfc7b 100644 (file)
@@ -57,7 +57,6 @@ struct PACKED(8) StringDexCachePair {
   // Set the initial state for the 0th entry to be {0,1} which is guaranteed to fail
   // the lookup string id == stored id branch.
   static void Initialize(StringDexCacheType* strings) {
-    DCHECK(StringDexCacheType().is_lock_free());
     mirror::StringDexCachePair first_elem;
     first_elem.string_pointer = GcRoot<String>(nullptr);
     first_elem.string_index = 1;