diff options
author | 2021-02-07 21:51:58 +0000 | |
---|---|---|
committer | 2021-02-16 09:27:59 +0000 | |
commit | 6df4511a2cf9ffae0294c1e5136c27ff84cfd1cb (patch) | |
tree | a29efde60f8ffb947679113d524ae9f6169e0338 /runtime/class_linker.h | |
parent | 354fbd7e8d38d7888c6c2610cc14cfa55f468fbb (diff) |
Use vdex assignability types at runtime.
When the oat file mentions the class needs to be verified at runtime,
check whether the vdex has assignability types. If it has, and the
checks are successful, then the class is verified. Otherwise do a full
verification to report the actual verification error.
Test: test.py
Bug: 176960283
Change-Id: I2ba14b72c1d8be3d33f7a699721496a8c15c39f2
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index f9becf97b2..95dc6cfaff 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -557,8 +557,9 @@ class ClassLinker { verifier::HardFailLogMode log_level = verifier::HardFailLogMode::kLogNone) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Locks::dex_lock_); - bool VerifyClassUsingOatFile(const DexFile& dex_file, - ObjPtr<mirror::Class> klass, + bool VerifyClassUsingOatFile(Thread* self, + const DexFile& dex_file, + Handle<mirror::Class> klass, ClassStatus& oat_file_class_status) REQUIRES_SHARED(Locks::mutator_lock_) REQUIRES(!Locks::dex_lock_); |