summaryrefslogtreecommitdiff
path: root/src/native/java_lang_Object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/java_lang_Object.cc')
-rw-r--r--src/native/java_lang_Object.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/native/java_lang_Object.cc b/src/native/java_lang_Object.cc
index d6b1bd6cf8..89019f78a9 100644
--- a/src/native/java_lang_Object.cc
+++ b/src/native/java_lang_Object.cc
@@ -16,31 +16,31 @@
#include "jni_internal.h"
#include "object.h"
-#include "scoped_jni_thread_state.h"
+#include "scoped_thread_state_change.h"
namespace art {
static jobject Object_internalClone(JNIEnv* env, jobject javaThis) {
- ScopedJniThreadState ts(env);
- Object* o = ts.Decode<Object*>(javaThis);
- return ts.AddLocalReference<jobject>(o->Clone());
+ ScopedObjectAccess soa(env);
+ Object* o = soa.Decode<Object*>(javaThis);
+ return soa.AddLocalReference<jobject>(o->Clone());
}
static void Object_notify(JNIEnv* env, jobject javaThis) {
- ScopedJniThreadState ts(env);
- Object* o = ts.Decode<Object*>(javaThis);
+ ScopedObjectAccess soa(env);
+ Object* o = soa.Decode<Object*>(javaThis);
o->Notify();
}
static void Object_notifyAll(JNIEnv* env, jobject javaThis) {
- ScopedJniThreadState ts(env);
- Object* o = ts.Decode<Object*>(javaThis);
+ ScopedObjectAccess soa(env);
+ Object* o = soa.Decode<Object*>(javaThis);
o->NotifyAll();
}
static void Object_wait(JNIEnv* env, jobject javaThis, jlong ms, jint ns) {
- ScopedJniThreadState ts(env);
- Object* o = ts.Decode<Object*>(javaThis);
+ ScopedObjectAccess soa(env);
+ Object* o = soa.Decode<Object*>(javaThis);
o->Wait(ms, ns);
}