diff options
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 7a68863595..f94d791ffd 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -10389,6 +10389,15 @@ void ClassLinker::SetEnablePublicSdkChecks(bool enabled ATTRIBUTE_UNUSED) { UNREACHABLE(); } +void ClassLinker::RemoveDexFromCaches(const DexFile& dex_file) { + ReaderMutexLock mu(Thread::Current(), *Locks::dex_lock_); + + auto it = dex_caches_.find(&dex_file); + if (it != dex_caches_.end()) { + dex_caches_.erase(it); + } +} + // Instantiate ClassLinker::AllocClass. template ObjPtr<mirror::Class> ClassLinker::AllocClass</* kMovable= */ true>( Thread* self, |