diff options
Diffstat (limited to 'src/class_linker.h')
| -rw-r--r-- | src/class_linker.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/class_linker.h b/src/class_linker.h index 096d602558..f1530f3ec8 100644 --- a/src/class_linker.h +++ b/src/class_linker.h @@ -262,7 +262,7 @@ class ClassLinker { void VisitClassesWithoutClassesLock(ClassVisitor* visitor, void* arg) const LOCKS_EXCLUDED(Locks::classlinker_classes_lock_); - void VisitRoots(Heap::RootVisitor* visitor, void* arg) const + void VisitRoots(Heap::RootVisitor* visitor, void* arg) LOCKS_EXCLUDED(Locks::classlinker_classes_lock_, dex_lock_); DexCache* FindDexCache(const DexFile& dex_file) const @@ -302,7 +302,7 @@ class ClassLinker { SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); - // Returns true if oat file contains the dex file with the given location and checksum + // Returns true if oat file contains the dex file with the given location and checksum. static bool VerifyOatFileChecksums(const OatFile* oat_file, const std::string& dex_location, uint32_t dex_location_checksum) @@ -378,6 +378,14 @@ class ClassLinker { pid_t GetClassesLockOwner(); // For SignalCatcher. pid_t GetDexLockOwner(); // For SignalCatcher. + bool IsDirty() const { + return is_dirty_; + } + + void Dirty() { + is_dirty_ = true; + } + private: explicit ClassLinker(InternTable*); @@ -636,6 +644,7 @@ class ClassLinker { IfTable* array_iftable_; bool init_done_; + bool is_dirty_; InternTable* intern_table_; |