OSDN Git Service

Return the right value in VerifyClass.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 7 Mar 2017 14:33:37 +0000 (14:33 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 7 Mar 2017 17:44:43 +0000 (17:44 +0000)
commit7cc3ae5705416bd8fc4b7096904e2871aa761e73
tree7828e0346d1961b1454a56fa7759b72c13e1b67a
parenta86b359441f349d9057d05c32c88c375d794cf86
Return the right value in VerifyClass.

We used to return kNoFailure when a class was already processed.
But it could have had soft failures.

Also remove IsCompileTimeVerified to avoid future confusions and
introduce ShouldVerifyAtRuntime.

Add some more checks to make sure we record the right things in
the vdex file.

bug: 33845394
test: verifier_deps_test test-art-host
Change-Id: Iff11a96e825c85db416083413761981515f405b7
build/Android.gtest.mk
compiler/driver/compiler_driver.cc
compiler/verifier_deps_test.cc
runtime/class_linker.cc
runtime/mirror/class.h
test/VerifierDeps/MySub1SoftVerificationFailure.smali [new file with mode: 0644]
test/VerifierDeps/MySub2SoftVerificationFailure.smali [new file with mode: 0644]
test/VerifierDepsMulti/MySoftVerificationFailure.smali [new file with mode: 0644]