diff options
Diffstat (limited to 'runtime/gc_root-inl.h')
-rw-r--r-- | runtime/gc_root-inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/gc_root-inl.h b/runtime/gc_root-inl.h index 482f7bca0e..2661e54261 100644 --- a/runtime/gc_root-inl.h +++ b/runtime/gc_root-inl.h @@ -29,5 +29,10 @@ inline MirrorType* GcRoot<MirrorType>::Read() { return ReadBarrier::BarrierForRoot<MirrorType, kReadBarrierOption>(&root_); } +template<class MirrorType> +inline void GcRoot<MirrorType>::Assign(MirrorType* value) { + root_ = value; +} + } // namespace art #endif // ART_RUNTIME_GC_ROOT_INL_H_ |