diff options
Diffstat (limited to 'runtime/handle.h')
-rw-r--r-- | runtime/handle.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/runtime/handle.h b/runtime/handle.h index 6af3220561..3ebb2d5d30 100644 --- a/runtime/handle.h +++ b/runtime/handle.h @@ -70,6 +70,16 @@ class Handle : public ValueObject { return reinterpret_cast<jobject>(reference_); } + StackReference<mirror::Object>* GetReference() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) + ALWAYS_INLINE { + return reference_; + } + + ALWAYS_INLINE const StackReference<mirror::Object>* GetReference() const + SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { + return reference_; + } + protected: template<typename S> explicit Handle(StackReference<S>* reference) @@ -80,14 +90,6 @@ class Handle : public ValueObject { : reference_(handle.reference_) { } - StackReference<mirror::Object>* GetReference() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) ALWAYS_INLINE { - return reference_; - } - ALWAYS_INLINE const StackReference<mirror::Object>* GetReference() const - SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { - return reference_; - } - StackReference<mirror::Object>* reference_; private: |