summaryrefslogtreecommitdiff
path: root/runtime/class_table.h
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2016-10-17 15:46:31 -0700
committer Mathieu Chartier <mathieuc@google.com> 2016-10-17 16:16:50 -0700
commitbc5a795c0d486c84913d987cad5846ded840cea6 (patch)
tree90db29a97a21fa15f4cbc5ffbc1f6dd191add49c /runtime/class_table.h
parent38a4223fcc0493553d9ad324a1dc145869eb663a (diff)
Move art/native to ObjPtr
Bug: 31113334 Test: test-art-host Change-Id: I67eb89cf042c762c6dcd5eb8b008b9a28e9b3319
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r--runtime/class_table.h3
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_);