From ca3c8c33501bf199d6fd0a5db30a27d8e010cb23 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Tue, 6 Sep 2016 14:04:48 +0100 Subject: Collect verifier dependencies MethodVerifier tests whether a DEX method is valid w.r.t. the classes in class path. Since the APK does not change across OTA updates, it is not necessary to analyze the bytecode again with MethodVerifier, as long as its dependencies on the class path (which may have changed) are satisfied. This patch introduces VerifierDeps, a class path dependency collector, and adds hooks into MethodVerifier where classes/methods/fields are resolved and where assignability of types is tested. Test: m test-art-host-gtest-verifier_deps_test Bug: 30937355 Change-Id: Iee0b321d772a5c7d1cb471aaa6e13918310b7e2f --- runtime/utils.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/utils.cc') diff --git a/runtime/utils.cc b/runtime/utils.cc index d48edcfa55..6f10aaacaf 100644 --- a/runtime/utils.cc +++ b/runtime/utils.cc @@ -442,6 +442,12 @@ std::string PrettyJavaAccessFlags(uint32_t access_flags) { if ((access_flags & kAccStatic) != 0) { result += "static "; } + if ((access_flags & kAccAbstract) != 0) { + result += "abstract "; + } + if ((access_flags & kAccInterface) != 0) { + result += "interface "; + } if ((access_flags & kAccTransient) != 0) { result += "transient "; } -- cgit v1.2.3-59-g8ed1b