summaryrefslogtreecommitdiff
path: root/runtime/mirror/class.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-03-08 10:07:42 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-03-08 10:07:43 +0000
commit742bc41f754e77a528f859babec4dfea179ca96e (patch)
tree8a0587040a53b4d42c8aa90350ae93afc91a37d2 /runtime/mirror/class.h
parent2ec053fa337c1934ccb803136b56b57bcc06a32f (diff)
parent7cc3ae5705416bd8fc4b7096904e2871aa761e73 (diff)
Merge "Return the right value in VerifyClass."
Diffstat (limited to 'runtime/mirror/class.h')
-rw-r--r--runtime/mirror/class.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h
index d34f09c721..b68eedcb11 100644
--- a/runtime/mirror/class.h
+++ b/runtime/mirror/class.h
@@ -206,10 +206,10 @@ class MANAGED Class FINAL : public Object {
return status >= kStatusResolved || status == kStatusErrorResolved;
}
- // Returns true if the class was compile-time verified.
+ // Returns true if the class should be verified at runtime.
template<VerifyObjectFlags kVerifyFlags = kDefaultVerifyFlags>
- bool IsCompileTimeVerified() REQUIRES_SHARED(Locks::mutator_lock_) {
- return GetStatus<kVerifyFlags>() >= kStatusRetryVerificationAtRuntime;
+ bool ShouldVerifyAtRuntime() REQUIRES_SHARED(Locks::mutator_lock_) {
+ return GetStatus<kVerifyFlags>() == kStatusRetryVerificationAtRuntime;
}
// Returns true if the class has been verified.