Lines Matching defs:thread
52 #include "thread-inl.h"
73 SharedLibrary(JNIEnv* env, Thread* self, const std::string& path, void* handle,
88 Thread* self = Thread::Current();
114 * If the call has not yet finished in another thread, wait for it.
118 Thread* self = Thread::Current();
143 Thread* self = Thread::Current();
161 // No mutator lock since dlsym may block for a while if another thread is doing dlopen.
169 // No mutator lock since dlsym may block for a while if another thread is doing dlopen.
210 // Wait for JNI_OnLoad in other thread.
229 // no thread to lock this with.
231 CHECK(Thread::Current() == nullptr);
245 Locks::jni_libraries_lock_->AssertHeld(Thread::Current());
271 void* FindNativeMethod(Thread* self, ArtMethod* m, std::string& detail)
278 ScopedObjectAccessUnchecked soa(Thread::Current());
302 void* FindNativeMethodInternal(Thread* self,
336 Thread* const self = Thread::Current();
402 if (vm == nullptr || Thread::Current() == nullptr) {
415 Thread* thread = Thread::Current();
416 if (thread == nullptr) {
431 Thread* self = Thread::Current();
441 LOG(ERROR) << "Attempt to attach a thread in the zygote";
464 *p_env = Thread::Current()->GetJniEnv();
550 Thread* self = Thread::Current();
560 // TODO: is this useful given that we're about to dump the calling thread's stack?
568 // Ensure that we get a native stack trace for this thread.
635 ScopedObjectAccess soa(Thread::Current());
645 ScopedObjectAccess soa(Thread::Current());
654 jobject JavaVMExt::AddGlobalRef(Thread* self, ObjPtr<mirror::Object> obj) {
673 jweak JavaVMExt::AddWeakGlobalRef(Thread* self, ObjPtr<mirror::Object> obj) {
696 void JavaVMExt::DeleteGlobalRef(Thread* self, jobject obj) {
710 void JavaVMExt::DeleteWeakGlobalRef(Thread* self, jweak obj) {
721 static void ThreadEnableCheckJni(Thread* thread, void* arg) {
723 thread->GetJniEnv()->SetCheckJniEnabled(*check_jni);
730 MutexLock mu(Thread::Current(), *Locks::thread_list_lock_);
740 Thread* self = Thread::Current();
761 Thread* const self = Thread::Current();
772 Thread* self = Thread::Current();
779 Thread* self = Thread::Current();
788 void JavaVMExt::UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) {
793 inline bool JavaVMExt::MayAccessWeakGlobals(Thread* self) const {
797 inline bool JavaVMExt::MayAccessWeakGlobalsUnlocked(Thread* self) const {
804 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobal(Thread* self, IndirectRef ref) {
819 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalLocked(Thread* self, IndirectRef ref) {
832 ObjPtr<mirror::Object> JavaVMExt::DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref) {
845 bool JavaVMExt::IsWeakGlobalCleared(Thread* self, IndirectRef ref) {
861 void JavaVMExt::UpdateWeakGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result) {
867 Thread* self = Thread::Current();
898 Thread* self = Thread::Current();
1130 Thread* const self = Thread::Current();
1146 MutexLock mu(Thread::Current(), *Locks::jni_weak_globals_lock_);
1163 WriterMutexLock mu(Thread::Current(), *Locks::jni_globals_lock_);
1168 Thread* self = Thread::Current();
1212 delete Thread::Current()->GetJniEnv();
1218 *p_env = Thread::Current()->GetJniEnv();