summaryrefslogtreecommitdiff
path: root/openjdkjvmti
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2021-01-12 14:02:29 +0000
committerNicolas Geoffray <ngeoffray@google.com>2021-02-01 14:48:53 +0000
commitd1728bfca62a0757000ef3aa0388b5e51269a2a2 (patch)
tree04d75ba364e3ce0c39735a38083383408f9f7cf4 /openjdkjvmti
parent36e4d1d398a1526c6bc5eba12b32279dc07749d8 (diff)
Add a kTypeChecksFailure.
This is to distinguish between a soft failure due to type checks, or a soft failure due to other reasons. A follow-up CL will start using that information and use the type checks in the vdex file to perform fast verification at runtime. Test: test.py Bug: 176960283 Change-Id: I04bff9ff26033f41e9439d366667a9aec1f339a0
Diffstat (limited to 'openjdkjvmti')
-rw-r--r--openjdkjvmti/ti_redefine.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/openjdkjvmti/ti_redefine.cc b/openjdkjvmti/ti_redefine.cc
index 58c1c4e926..12d00ad052 100644
--- a/openjdkjvmti/ti_redefine.cc
+++ b/openjdkjvmti/ti_redefine.cc
@@ -1630,6 +1630,7 @@ bool Redefiner::ClassRedefinition::CheckVerification(const RedefinitionDataIter&
return true;
case art::verifier::FailureKind::kSoftFailure:
case art::verifier::FailureKind::kAccessChecksFailure:
+ case art::verifier::FailureKind::kTypeChecksFailure:
// Soft failures might require interpreter on some methods. It won't prevent redefinition but
// it does mean we need to run the verifier again and potentially update method flags after
// performing the swap.