Searched defs:thread (Results 1 - 25 of 62) sorted by relevance

123

/art/runtime/
H A Dthread-current-inl.h20 #include "thread.h"
31 // We rely on Thread::Current returning null for a detached thread, so it's not obvious
37 void* thread = __get_tls()[TLS_SLOT_ART_THREAD_SELF]; local
39 void* thread = pthread_getspecific(Thread::pthread_key_self_);
41 return reinterpret_cast<Thread*>(thread);
H A Dnth_caller_visitor.h29 NthCallerVisitor(Thread* thread, size_t n_in, bool include_runtime_and_upcalls = false) argument
30 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
H A Dfault_handler.cc33 #include "thread-current-inl.h"
270 // We can only be running Java code in the current thread if it
273 Thread* thread = Thread::Current(); local
274 if (thread == nullptr) {
275 VLOG(signals) << "no current thread";
279 ThreadState state = thread->GetState();
285 // Current thread is runnable.
287 if (!Locks::mutator_lock_->IsSharedHeld(thread)) {
H A Djni_env_ext.cc33 #include "thread-current-inl.h"
60 Thread* thread = Thread::Current(); local
61 CHECK(thread != nullptr);
62 *env = thread->GetJniEnv();
199 // current thread, which isn't safe if this is the only runnable thread.
204 // IdentityHashCode can cause thread suspension, which would invalidate o if it moved. So
287 "Critical lock held when returning to Java on thread %s",
292 static void ThreadResetFunctionTable(Thread* thread, void* arg ATTRIBUTE_UNUSED)
294 JNIEnvExt* env = thread
[all...]
/art/openjdkjvmti/
H A Dti_dump.cc41 #include "thread-current-inl.h"
48 art::Thread* thread = art::Thread::Current(); local
49 art::ScopedThreadSuspension sts(thread, art::ThreadState::kNative);
H A Devents-inl.h188 inline std::vector<impl::EventHandlerFunc<kEvent>> EventHandler::CollectEvents(art::Thread* thread, argument
190 art::ReaderMutexLock mu(thread, envs_lock_);
193 if (ShouldDispatch<kEvent>(env, thread, args...)) {
204 inline void EventHandler::DispatchClassFileLoadHookEvent(art::Thread* thread, argument
214 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative);
221 CollectEvents<kEvent>(thread,
268 inline void EventHandler::DispatchEvent(art::Thread* thread, Args... args) const { argument
269 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative);
274 DCHECK(thread == nullptr || !thread
282 DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const argument
293 DispatchEventOnEnv( ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv, Args... args) const argument
304 DispatchEventOnEnv( ArtJvmTiEnv* env, art::Thread* thread, Args... args) const argument
336 ShouldDispatch( ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv ATTRIBUTE_UNUSED, jthread jni_thread ATTRIBUTE_UNUSED, jmethodID jmethod, jlocation location) const argument
350 ShouldDispatch( ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv ATTRIBUTE_UNUSED, jthread jni_thread ATTRIBUTE_UNUSED, jmethodID jmethod ATTRIBUTE_UNUSED, jboolean is_exception ATTRIBUTE_UNUSED, const art::ShadowFrame* frame) const argument
370 ShouldDispatch( ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv ATTRIBUTE_UNUSED, jthread jni_thread ATTRIBUTE_UNUSED, jmethodID method ATTRIBUTE_UNUSED, jlocation location ATTRIBUTE_UNUSED, jclass field_klass ATTRIBUTE_UNUSED, jobject object ATTRIBUTE_UNUSED, jfieldID field, char type_char ATTRIBUTE_UNUSED, jvalue val ATTRIBUTE_UNUSED) const argument
389 ShouldDispatch( ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv ATTRIBUTE_UNUSED, jthread jni_thread ATTRIBUTE_UNUSED, jmethodID method ATTRIBUTE_UNUSED, jlocation location ATTRIBUTE_UNUSED, jclass field_klass ATTRIBUTE_UNUSED, jobject object ATTRIBUTE_UNUSED, jfieldID field) const argument
424 DispatchEvent(art::Thread* thread, JNIEnv* jnienv, jthread jni_thread, jmethodID method, void* cur_method, void** new_method) const argument
458 DispatchEvent( art::Thread* thread, JNIEnv* jnienv, jclass class_being_redefined, jobject loader, const char* name, jobject protection_domain, jint class_data_len, const unsigned char* class_data, jint* new_class_data_len, unsigned char** new_class_data) const argument
483 DispatchEvent( art::Thread* thread, JNIEnv* jnienv, jclass class_being_redefined, jobject loader, const char* name, jobject protection_domain, jint class_data_len, const unsigned char* class_data, jint* new_class_data_len, unsigned char** new_class_data) const argument
519 ShouldDispatch(ArtJvmTiEnv* env, art::Thread* thread, Args... args ATTRIBUTE_UNUSED) const argument
[all...]
/art/test/167-visit-locks/
H A Dvisit_locks.cc32 #include "thread-current-inl.h"
41 VisitLocks(Thread* thread, Context* context) argument
42 : StackVisitor(thread, context, StackWalkKind::kIncludeInlinedFrames) {
/art/test/911-get-stack-trace/src/art/
H A DFrames.java36 System.out.println("### Same thread ###");
60 System.out.println("### Other thread (suspended) ###");
90 // Let the thread make progress and die.
99 System.out.println("### Other thread (live) ###");
128 // Let the thread stop looping and die.
133 public static native int getFrameCount(Thread thread); argument
134 public static native Object[] getFrameLocation(Thread thread, int depth); argument
H A DPrintThread.java44 "Binder:|RenderThread|hwuiTask|Jit thread pool worker|Instr:|JDWP|Profile Saver|main|" +
91 public static native String[][] getStackTrace(Thread thread, int start, int max); argument
/art/test/904-object-allocation/src/art/
H A DTest904.java70 System.out.println("Tracking on same thread");
77 System.out.println("Tracking on same thread, not disabling tracking");
82 System.out.println("Tracking on different thread");
151 private static native void enableAllocationTracking(Thread thread, boolean enable); argument
/art/runtime/native/
H A Ddalvik_system_VMStack.cc49 // Never allow suspending the heap task thread since it may deadlock if allocations are
57 // Suspend thread to build stack trace.
61 Thread* thread = thread_list->SuspendThreadByPeer(peer, local
65 if (thread != nullptr) {
69 trace = fn(thread, soa);
71 // Restart suspended thread.
72 bool resumed = thread_list->Resume(thread, SuspendReason::kInternal);
75 LOG(ERROR) << "Trying to get thread's stack failed as the thread failed to suspend within a "
85 auto fn = [](Thread* thread, cons
112 ClosestUserClassLoaderVisitor(Thread* thread) argument
[all...]
H A Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc68 // Check for valid thread
73 // Suspend thread to build stack trace.
74 Thread* thread = thread_list->SuspendThreadByThreadId(thin_lock_id, local
77 if (thread != nullptr) {
80 jobject internal_trace = thread->CreateInternalStackTrace<false>(soa);
83 // Restart suspended thread.
84 bool resumed = thread_list->Resume(thread, SuspendReason::kInternal);
88 LOG(ERROR) << "Trying to get thread's stack by id failed as the thread failed to suspend "
112 * (2b) thread coun
[all...]
H A Djava_lang_Thread.cc28 #include "thread.h"
46 Thread* thread = Thread::FromManagedThread(soa, java_thread); local
47 return (thread != nullptr) ? thread->IsInterrupted() : JNI_FALSE;
52 // There are sections in the zygote that forbid thread creation.
76 Thread* thread = Thread::FromManagedThread(soa, java_thread); local
77 if (thread != nullptr) {
78 internal_thread_state = thread->GetState();
110 LOG(ERROR) << "Unexpected thread state: " << internal_thread_state;
122 Thread* thread local
129 Thread* thread = Thread::FromManagedThread(soa, java_thread); local
150 Thread* thread = thread_list->SuspendThreadByPeer(peer, local
175 Thread* thread = Thread::FromManagedThread(soa, java_thread); local
[all...]
/art/test/1922-owned-monitors-info/
H A Downed_monitors.cc92 JNIEnv* env, jclass, jthread thread) {
96 env, jvmti_env, jvmti_env->GetOwnedMonitorStackDepthInfo(thread, &len, &monitors))) {
119 jthread thread) {
122 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetOwnedMonitorInfo(thread, &len, &arr))) {
91 Java_art_Test1922_getOwnedMonitorStackDepthInfo( JNIEnv* env, jclass, jthread thread) argument
117 Java_art_Test1922_getOwnedMonitors(JNIEnv* env, jclass, jthread thread) argument
/art/test/904-object-allocation/
H A Dtracking.cc52 jthread thread ATTRIBUTE_UNUSED,
78 JNIEnv* env, jclass, jthread thread, jboolean enable) {
82 thread);
77 Java_art_Test904_enableAllocationTracking( JNIEnv* env, jclass, jthread thread, jboolean enable) argument
/art/test/911-get-stack-trace/
H A Dstack_trace.cc129 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint start, jint max) {
134 jvmtiError result = jvmti_env->GetStackTrace(thread, start, max, frames.get(), &count);
157 return stack_infos[thread_index].thread;
193 return stack_infos[thread_index].thread;
208 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread) {
210 jvmtiError result = jvmti_env->GetFrameCount(thread, &count);
218 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint depth) {
222 jvmtiError result = jvmti_env->GetFrameLocation(thread, depth, &method, &location);
128 Java_art_PrintThread_getStackTrace( JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint start, jint max) argument
207 Java_art_Frames_getFrameCount( JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread) argument
217 Java_art_Frames_getFrameLocation( JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jint depth) argument
/art/compiler/
H A Dexception_test.cc39 #include "thread.h"
172 Thread* thread = Thread::Current(); local
173 thread->TransitionFromSuspendedToRunnable();
176 JNIEnv* env = thread->GetJniEnv();
220 // Set up thread to appear as if we called out of method_g_ at given pc dex.
221 thread->SetTopOfStack(reinterpret_cast<ArtMethod**>(&fake_stack[0]));
223 jobject internal = thread->CreateInternalStackTrace<false>(soa);
246 thread->SetTopOfStack(nullptr); // Disarm the assertion that no code is running when we detach.
/art/runtime/gc/
H A Dreference_processor.cc81 // If the referent became cleared, return it. Don't need barrier since thread roots can't get
256 virtual void Run(Thread* thread) { argument
257 ScopedObjectAccess soa(thread);
/art/test/1919-vminit-thread-start-timing/
H A Dvminit.cc17 #include "1919-vminit-thread-start-timing/vminit.h"
20 #include <thread>
56 static void JNICALL ThreadStartCallback(jvmtiEnv *jvmti, JNIEnv* env, jthread thread) { argument
60 list->events.push_back({ "ThreadStart", env->NewGlobalRef(thread) });
87 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get()));
88 CHECK(thread.get() != nullptr);
93 env->CallNonvirtualVoidMethod(thread.get(), thread_klass.get(), initID, thread_name.get());
96 // Run agent thread.
97 CheckJvmtiError(jvmti, jvmti->RunAgentThread(thread.get(),
103 static void JNICALL VMInitCallback(jvmtiEnv *jvmti, JNIEnv* env, jthread thread) { argument
[all...]
/art/test/1939-proxy-frames/src/art/
H A DTest1939.java38 Thread thread,
113 System.out.println("Running " + target + " with " + safepoint + " on remote thread.");
120 throw new Error("Error invoking remote thread " + Thread.currentThread(), e);
123 "remote thread for " + target + " with " + safepoint);
146 throw new Error("Unable to find stack frame in method " + target + " on thread " + thr);
37 invoke( Thread thread, Method target, int depth) argument
/art/test/common/
H A Dstack_inspect.cc30 #include "thread-current-inl.h"
72 MethodIsInterpretedVisitor(Thread* thread, ArtMethod* goal, bool require_deoptable) argument
73 : StackVisitor(thread, nullptr, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
/art/test/ti-agent/
H A Dbreakpoint_helper.cc39 jthread thread,
54 thread,
37 breakpointCB(jvmtiEnv* jvmti, JNIEnv* jnienv, jthread thread, jmethodID method, jlocation location) argument
H A Dexceptions_helper.cc39 jthread thread,
62 thread,
80 jthread thread,
98 thread,
37 exceptionCB(jvmtiEnv* jvmti, JNIEnv* jnienv, jthread thread, jmethodID throw_method, jlocation throw_location, jobject throwable, jmethodID catch_method, jlocation catch_location) argument
78 exceptionCatchCB(jvmtiEnv* jvmti, JNIEnv* jnienv, jthread thread, jmethodID catch_method, jlocation catch_location, jobject throwable) argument
/art/runtime/gc/space/
H A Dbump_pointer_space.cc96 size_t BumpPointerSpace::RevokeThreadLocalBuffers(Thread* thread) { argument
98 RevokeThreadLocalBuffersLocked(thread);
106 // TODO: Not do a copy of the thread list?
108 for (Thread* thread : thread_list) {
109 RevokeThreadLocalBuffers(thread);
114 void BumpPointerSpace::AssertThreadLocalBuffersAreRevoked(Thread* thread) { argument
117 DCHECK(!thread->HasTlab());
126 // TODO: Not do a copy of the thread list?
128 for (Thread* thread : thread_list) {
129 AssertThreadLocalBuffersAreRevoked(thread);
197 RevokeThreadLocalBuffersLocked(Thread* thread) argument
[all...]
/art/test/1912-get-set-local-primitive/src/art/
H A DTest1912.java89 Thread thread,
172 System.out.println("Running " + target + " with " + safepoint + " on remote thread.");
179 throw new Error("Error invoking remote thread " + Thread.currentThread(), e);
182 "remote thread for " + target + " with " + safepoint);
215 throw new Error("Unable to find stack frame in method " + target + " on thread " + thr);
88 invoke( Thread thread, Method target, Locals.VariableDescription TARGET_desc, int depth) argument

Completed in 3934 milliseconds

123