diff options
author | 2013-01-24 12:42:14 -0800 | |
---|---|---|
committer | 2013-01-30 16:48:31 -0800 | |
commit | 2dd0e2cea360bc9206eb88ecc40d259e796c239d (patch) | |
tree | 9d619dc9508cbe73e4793bf6f08cbc761abfb48a /src/native/java_lang_Thread.cc | |
parent | ac21b797b3a425975d656d6b84a7b24401d35f42 (diff) |
Directory restructuring of object.h
Break object.h into constituent files.
Reduce number of #includes in other GC header files.
Introduce -inl.h files to avoid mirror files #include-ing each other.
Check invariants of verifier RegTypes for all constructors.
Change-Id: Iecf1171c02910ac152d52947330ef456df4043bc
Diffstat (limited to 'src/native/java_lang_Thread.cc')
-rw-r--r-- | src/native/java_lang_Thread.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/native/java_lang_Thread.cc b/src/native/java_lang_Thread.cc index 473369ef1a..ca4be9de9b 100644 --- a/src/native/java_lang_Thread.cc +++ b/src/native/java_lang_Thread.cc @@ -17,7 +17,7 @@ #include "debugger.h" #include "jni_internal.h" #include "monitor.h" -#include "object.h" +#include "mirror/object.h" #include "scoped_thread_state_change.h" #include "ScopedUtfChars.h" #include "thread.h" @@ -88,7 +88,7 @@ static jint Thread_nativeGetStatus(JNIEnv* env, jobject java_thread, jboolean ha static jboolean Thread_nativeHoldsLock(JNIEnv* env, jobject java_thread, jobject java_object) { ScopedObjectAccess soa(env); - Object* object = soa.Decode<Object*>(java_object); + mirror::Object* object = soa.Decode<mirror::Object*>(java_object); if (object == NULL) { Thread::Current()->ThrowNewException("Ljava/lang/NullPointerException;", "object == null"); return JNI_FALSE; @@ -111,7 +111,7 @@ static void Thread_nativeSetName(JNIEnv* env, jobject peer, jstring java_name) { ScopedUtfChars name(env, java_name); { ScopedObjectAccess soa(env); - if (soa.Decode<Object*>(peer) == soa.Self()->GetPeer()) { + if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) { soa.Self()->SetThreadName(name.c_str()); return; } @@ -149,7 +149,7 @@ static void Thread_nativeSetPriority(JNIEnv* env, jobject java_thread, jint new_ static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { ScopedObjectAccess soa(env); - Object* lock = soa.Decode<Object*>(java_lock); + mirror::Object* lock = soa.Decode<mirror::Object*>(java_lock); Monitor::Wait(Thread::Current(), lock, ms, ns, true, kSleeping); } |