summaryrefslogtreecommitdiff
path: root/runtime/class_linker.h
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2014-07-16 14:45:03 +0100
committer Calin Juravle <calin@google.com> 2014-07-16 15:50:54 +0100
commitc54aea7f4acd1a32bb298d43c20e3e0217638926 (patch)
treef3da12b55dea316e4aae6f01c34411ec3824d510 /runtime/class_linker.h
parent635561b86ac03f5562bdb779baa6db12f31b3cae (diff)
Make ART fail gracefully when it can't update the desired code.
ART was exiting with a fatal error when it couldn't clean an obsolete file. Relaxing this and failing gracefully preserves the behaviour that Dalvik had. Bug: 15313272 Change-Id: I8d0d6d374c90d2a434909dd4ae56f0799f30134d
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r--runtime/class_linker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h
index d9b3d2541c..64bffc9bf3 100644
--- a/runtime/class_linker.h
+++ b/runtime/class_linker.h
@@ -571,7 +571,8 @@ class ClassLinker {
const OatFile* FindOatFileContainingDexFileFromDexLocation(const char* location,
const uint32_t* const location_checksum,
InstructionSet isa,
- std::vector<std::string>* error_msgs)
+ std::vector<std::string>* error_msgs,
+ bool* obsolete_file_cleanup_failed)
LOCKS_EXCLUDED(dex_lock_, Locks::mutator_lock_);
// Find a verify an oat file with the given dex file. Will return nullptr when the oat file