OSDN Git Service

ART: DCHECK still too strong for String NewInstance
authorDavid Brazdil <dbrazdil@google.com>
Wed, 20 Jan 2016 17:00:19 +0000 (17:00 +0000)
committerDavid Brazdil <dbrazdil@google.com>
Wed, 20 Jan 2016 18:14:30 +0000 (18:14 +0000)
commitc047d94f02334b419ce532c3bf7da3e91e69dae1
treec9213b1efcc9062a46a18a1f0fec6a984e6a5565
parent440ef2cbc76d7e2bc76cf5f15b69fc0478d7e853
ART: DCHECK still too strong for String NewInstance

Even though the presence of a irreducible loop phi is the reason why
String.<init> may see its first input not being the NewInstance, it
may see a different phi from the same cycle. We have to relax the
corresponding DCHECK.

Bug: 26676472
Change-Id: Iba6fffa74833c57aad8aa07dc382ff6b93838de1
compiler/optimizing/ssa_builder.cc
test/563-checker-fakestring/smali/TestCase.smali
test/563-checker-fakestring/src/Main.java