Lines Matching defs:thread
54 #include "thread.h"
127 static mirror::Class* EnsureInitialized(Thread* self, mirror::Class* klass)
313 Thread* self = Thread::Current();
323 LOG(ERROR) << "Attempt to attach a thread in the zygote";
345 *p_env = Thread::Current()->GetJniEnv();
359 jni_on_load_thread_id_(Thread::Current()->GetThreadId()),
373 * If the call has not yet finished in another thread, wait for it.
378 Thread* self = Thread::Current();
405 Thread* self = Thread::Current();
466 // Wait for JNI_OnLoad in other thread.
817 Thread* self = reinterpret_cast<JNIEnvExt*>(env)->self;
2955 JNIEnvExt::JNIEnvExt(Thread* self, JavaVMExt* vm)
3032 delete Thread::Current()->GetJniEnv();
3037 *p_env = Thread::Current()->GetJniEnv();
3078 if (vm == nullptr || Thread::Current() == nullptr) {
3098 Thread* thread = Thread::Current();
3099 if (thread == nullptr) {
3103 *env = thread->GetJniEnv();
3144 jweak JavaVMExt::AddWeakGlobalReference(Thread* self, mirror::Object* obj) {
3156 void JavaVMExt::DeleteWeakGlobalRef(Thread* self, jweak obj) {
3174 Thread* self = Thread::Current();
3194 MutexLock mu(Thread::Current(), weak_globals_lock_);
3199 Thread* self = Thread::Current();
3205 mirror::Object* JavaVMExt::DecodeWeakGlobal(Thread* self, IndirectRef ref) {
3214 Thread* self = Thread::Current();
3235 Thread* self = Thread::Current();
3378 c = EnsureInitialized(Thread::Current(), c);
3387 Thread* self = Thread::Current();
3401 MutexLock mu(Thread::Current(), weak_globals_lock_);
3414 Thread* self = Thread::Current();