diff options
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r-- | runtime/class_table.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h index acb15c7879..20e434d90b 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -27,6 +27,7 @@ #include "base/mutex.h" #include "dex_file.h" #include "gc_root.h" +#include "obj_ptr.h" #include "object_callbacks.h" #include "runtime.h" @@ -136,7 +137,7 @@ class ClassTable { REQUIRES_SHARED(Locks::mutator_lock_); // Return true if we inserted the strong root, false if it already exists. - bool InsertStrongRoot(mirror::Object* obj) + bool InsertStrongRoot(ObjPtr<mirror::Object> obj) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); |