diff options
Diffstat (limited to 'runtime/gc_root-inl.h')
| -rw-r--r-- | runtime/gc_root-inl.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/gc_root-inl.h b/runtime/gc_root-inl.h index 7795c661b6..e561d29f99 100644 --- a/runtime/gc_root-inl.h +++ b/runtime/gc_root-inl.h @@ -34,8 +34,12 @@ inline MirrorType* GcRoot<MirrorType>::Read(GcRootSource* gc_root_source) const } template<class MirrorType> +inline GcRoot<MirrorType>::GcRoot(mirror::CompressedReference<mirror::Object> ref) + : root_(ref) { } + +template<class MirrorType> inline GcRoot<MirrorType>::GcRoot(MirrorType* ref) - : root_(mirror::CompressedReference<mirror::Object>::FromMirrorPtr(ref)) { } + : GcRoot(mirror::CompressedReference<mirror::Object>::FromMirrorPtr(ref)) { } template<class MirrorType> inline GcRoot<MirrorType>::GcRoot(ObjPtr<MirrorType> ref) |