diff options
Diffstat (limited to 'runtime/handle_scope.h')
-rw-r--r-- | runtime/handle_scope.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/handle_scope.h b/runtime/handle_scope.h index ac28c8ad6e..9a0e52efd3 100644 --- a/runtime/handle_scope.h +++ b/runtime/handle_scope.h @@ -159,6 +159,10 @@ class PACKED(4) StackHandleScope FINAL : public HandleScope { ALWAYS_INLINE void SetReference(size_t i, mirror::Object* object) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); + Thread* Self() const { + return self_; + } + private: template<class T> ALWAYS_INLINE MutableHandle<T> GetHandle(size_t i) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { |