diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-05-19 10:52:16 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-05-19 15:19:28 -0700 |
commit | 2b7c4d196c8abe32f4ca633534917da9de53c359 (patch) | |
tree | f14dc45f53d5681a5c0e57b8a8cc6b35eee6e896 /runtime/reflection.h | |
parent | 84e524207b23d58a1b1e5f4443000ccac97c4184 (diff) | |
download | android_art-2b7c4d196c8abe32f4ca633534917da9de53c359.tar.gz android_art-2b7c4d196c8abe32f4ca633534917da9de53c359.tar.bz2 android_art-2b7c4d196c8abe32f4ca633534917da9de53c359.zip |
Don't get and restore thread state for ScopedFastNativeObjectAccess.
Before we would ensure that we were runnable for fast native object
access. However, these are done when you are already runnable.
Change-Id: Ia4c6e4c83d146fe2a988b37b3133ca46b0f0fa42
Diffstat (limited to 'runtime/reflection.h')
-rw-r--r-- | runtime/reflection.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/reflection.h b/runtime/reflection.h index d9a722825a..2c54c067fd 100644 --- a/runtime/reflection.h +++ b/runtime/reflection.h @@ -29,8 +29,7 @@ namespace mirror { } // namespace mirror union JValue; class MethodHelper; -class ScopedObjectAccess; -class ScopedObjectAccessUnchecked; +class ScopedObjectAccessAlreadyRunnable; class ShadowFrame; class ThrowLocation; @@ -48,18 +47,19 @@ bool ConvertPrimitiveValue(const ThrowLocation* throw_location, bool unbox_for_r const JValue& src, JValue* dst) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); -JValue InvokeWithVarArgs(const ScopedObjectAccess& soa, jobject obj, jmethodID mid, va_list args) +JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, + va_list args) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); -JValue InvokeWithJValues(const ScopedObjectAccessUnchecked& soa, mirror::Object* receiver, +JValue InvokeWithJValues(const ScopedObjectAccessAlreadyRunnable& soa, mirror::Object* receiver, jmethodID mid, jvalue* args) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); -JValue InvokeVirtualOrInterfaceWithJValues(const ScopedObjectAccess& soa, +JValue InvokeVirtualOrInterfaceWithJValues(const ScopedObjectAccessAlreadyRunnable& soa, mirror::Object* receiver, jmethodID mid, jvalue* args) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); -JValue InvokeVirtualOrInterfaceWithVarArgs(const ScopedObjectAccess& soa, +JValue InvokeVirtualOrInterfaceWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa, jobject obj, jmethodID mid, va_list args) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); @@ -67,7 +67,7 @@ void InvokeWithShadowFrame(Thread* self, ShadowFrame* shadow_frame, uint16_t arg MethodHelper& mh, JValue* result) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); -jobject InvokeMethod(const ScopedObjectAccess& soa, jobject method, jobject receiver, +jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa, jobject method, jobject receiver, jobject args, bool accessible) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |