summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index 2df7d23654..5f4f0abf8f 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -4092,11 +4092,8 @@ ObjPtr<mirror::DexCache> ClassLinker::RegisterDexFile(const DexFile& dex_file,
// remembered sets and generational GCs.
WriteBarrier::ForEveryFieldWrite(h_class_loader.Get());
}
- PaletteHooks* hooks = nullptr;
VLOG(class_linker) << "Registered dex file " << dex_file.GetLocation();
- if (PaletteGetHooks(&hooks) == PALETTE_STATUS_OK) {
- hooks->NotifyDexFileLoaded(dex_file.GetLocation().c_str());
- }
+ PaletteNotifyDexFileLoaded(dex_file.GetLocation().c_str());
return h_dex_cache.Get();
}