diff options
Diffstat (limited to 'runtime/gc_root.h')
-rw-r--r-- | runtime/gc_root.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/gc_root.h b/runtime/gc_root.h index b10a55c1a2..3928f5d3e2 100644 --- a/runtime/gc_root.h +++ b/runtime/gc_root.h @@ -28,6 +28,7 @@ class PACKED(4) GcRoot { public: template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier> ALWAYS_INLINE MirrorType* Read() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + ALWAYS_INLINE void Assign(MirrorType* value) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); void VisitRoot(RootCallback* callback, void* arg, uint32_t thread_id, RootType root_type) { callback(reinterpret_cast<mirror::Object**>(&root_), arg, thread_id, root_type); |