Searched refs:Thread (Results 1 - 25 of 373) sorted by relevance

1234567891011>>

/art/runtime/
H A Dmonitor_linux.cc21 void Monitor::LogContentionEvent(Thread*, uint32_t, uint32_t, const char*, uint32_t) {
H A Dbarrier.h42 void Pass(Thread* self);
45 void Wait(Thread* self);
54 void Increment(Thread* self, int delta) LOCKS_EXCLUDED(lock_);
58 bool Increment(Thread* self, int delta, uint32_t timeout_ms) LOCKS_EXCLUDED(lock_);
62 void Init(Thread* self, int count);
65 void SetCountLocked(Thread* self, int count) EXCLUSIVE_LOCKS_REQUIRED(lock_);
/art/test/039-join-main/src/
H A DMain.java22 Thread t;
24 t = new Thread(new JoinMainSub(Thread.currentThread()), "Joiner");
28 try { Thread.sleep(1000); }
36 private Thread mJoinMe;
38 public JoinMainSub(Thread joinMe) {
/art/runtime/arch/mips/
H A Dthread_mips.cc24 void Thread::InitCpu() {
30 void Thread::CleanupCpu() {
/art/runtime/arch/mips64/
H A Dthread_mips64.cc24 void Thread::InitCpu() {
30 void Thread::CleanupCpu() {
/art/runtime/entrypoints/quick/
H A Dquick_deoptimization_entrypoints.cc29 extern "C" NO_RETURN void artDeoptimize(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
32 self->SetException(Thread::GetDeoptimizationException());
H A Dquick_thread_entrypoints.cc22 extern "C" void artTestSuspendFromCode(Thread* self) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
H A Dquick_entrypoints.h26 Thread::QuickEntryPointOffset<ptr_size>(OFFSETOF_MEMBER(QuickEntryPoints, x))
39 class Thread;
53 extern uint32_t JniMethodStart(Thread* self) NO_THREAD_SAFETY_ANALYSIS HOT_ATTR;
54 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self)
56 extern void JniMethodEnd(uint32_t saved_local_ref_cookie, Thread* self)
59 Thread* self)
62 Thread* self)
67 jobject locked, Thread* self)
71 Thread* self)
/art/test/129-ThreadGetId/src/
H A DMain.java24 final Thread[] threads = new Thread[numberOfThreads];
26 threads[t] = new Thread(new Main());
29 for (Thread t : threads) {
36 if (Thread.currentThread().getId() <= 0) {
40 Map<Thread, StackTraceElement[]> stMap = Thread.getAllStackTraces();
41 for (Thread thread : stMap.keySet()) {
/art/runtime/entrypoints/interpreter/
H A Dinterpreter_entrypoints.h25 Thread::InterpreterEntryPointOffset<ptr_size>(OFFSETOF_MEMBER(InterpreterEntryPoints, x))
31 class Thread;
35 void (*pInterpreterToInterpreterBridge)(Thread* self, const DexFile::CodeItem* code_item,
37 void (*pInterpreterToCompiledCodeBridge)(Thread* self, const DexFile::CodeItem* code_item,
/art/test/050-sync-test/src/
H A DThreadDeathHandler.java17 import java.lang.Thread.UncaughtExceptionHandler;
22 public class ThreadDeathHandler implements Thread.UncaughtExceptionHandler {
29 public void uncaughtException(Thread t, Throwable e) {
/art/test/054-uncaught/src/
H A DThreadDeathHandler.java17 import java.lang.Thread.UncaughtExceptionHandler;
22 public class ThreadDeathHandler implements Thread.UncaughtExceptionHandler {
29 public void uncaughtException(Thread t, Throwable e) {
H A DMain.java30 Thread t = new Helper(which);
47 Thread.setDefaultUncaughtExceptionHandler(defHandler);
51 Thread.currentThread().setUncaughtExceptionHandler(
56 Thread.setDefaultUncaughtExceptionHandler(defHandler);
57 Thread.currentThread().setUncaughtExceptionHandler(
66 private static class Helper extends Thread {
/art/test/304-method-tracing/src/
H A DMain.java31 ArrayList<Thread> threads = new ArrayList<Thread>();
33 threads.add(new Thread(new ThreadRunnable(), "TestThread-" + i));
36 for (Thread t : threads) {
40 for (Thread t : threads) {
44 System.out.println("Thread " + t.getName() + " has been interrupted");
/art/test/033-class-init-deadlock/src/
H A DMain.java27 Thread thread1, thread2;
30 thread1 = new Thread() { public void run() { new A(); } };
31 thread2 = new Thread() { public void run() { new B(); } };
34 try { Thread.sleep(1000); } catch (InterruptedException ie) { }
37 try { Thread.sleep(6000); } catch (InterruptedException ie) { }
52 try { Thread.sleep(3000); } catch (InterruptedException ie) { }
62 try { Thread.sleep(3000); } catch (InterruptedException ie) { }
/art/runtime/base/
H A Dmutex_test.cc32 mu.AssertNotHeld(Thread::Current());
34 mu.AssertHeld(Thread::Current());
42 mu.Lock(Thread::Current());
44 mu.Unlock(Thread::Current());
52 ASSERT_TRUE(mu.TryLock(Thread::Current()));
54 mu.Unlock(Thread::Current());
66 mu.Lock(Thread::Current());
68 mu.Lock(Thread::Current());
70 mu.Unlock(Thread::Current());
72 mu.Unlock(Thread
[all...]
/art/runtime/interpreter/
H A Dinterpreter.h31 class Thread;
36 extern void EnterInterpreterFromInvoke(Thread* self, ArtMethod* method,
40 extern void EnterInterpreterFromDeoptimize(Thread* self, ShadowFrame* shadow_frame,
44 extern JValue EnterInterpreterFromEntryPoint(Thread* self, const DexFile::CodeItem* code_item,
51 extern "C" void artInterpreterToInterpreterBridge(Thread* self, const DexFile::CodeItem* code_item,
55 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, const DexFile::CodeItem* code_item,
/art/test/063-process-manager/src/
H A DMain.java9 Thread.sleep(2000);
19 Thread.sleep(1000);
26 Map<Thread, StackTraceElement[]> traces = Thread.getAllStackTraces();
29 for (Map.Entry<Thread, StackTraceElement[]> entry :
31 Thread t = entry.getKey();
/art/runtime/arch/x86_64/
H A Dthread_x86_64.cc38 void Thread::InitCpu() {
47 // Allow easy indirection back to Thread*.
50 // Sanity check that reads from %gs point to this Thread*.
51 Thread* self_check;
59 void Thread::CleanupCpu() {
60 // Sanity check that reads from %gs point to this Thread*.
61 Thread* self_check;
/art/runtime/entrypoints/jni/
H A Djni_entrypoints.cc29 Thread* self = Thread::Current();
31 extern "C" void* artFindNativeMethod(Thread* self) {
32 DCHECK_EQ(self, Thread::Current());
/art/test/078-polymorphic-virtual/src/
H A DBase.java17 public class Base extends Thread {
/art/test/051-thread/src/
H A DMain.java56 private static class TestCapacityThread extends Thread {
70 Thread t = new Thread(null, new TestDaemonThread(), "TestDaemonThread", 7168);
88 System.out.print("testThreadDaemons @ Thread running\n");
91 Thread.currentThread().setDaemon(true);
98 Thread.sleep(2000);
104 System.out.print("testThreadDaemons @ Thread bailing\n");
110 Thread.currentThread().interrupt();
112 Thread.sleep(0);
115 if (Thread
[all...]
/art/runtime/jit/
H A Djit_instrumentation.h41 class Thread;
49 void AddSamples(Thread* self, ArtMethod* method, size_t samples)
51 void SignalCompiled(Thread* self, ArtMethod* method)
69 virtual void MethodEntered(Thread* thread, mirror::Object* /*this_object*/,
74 virtual void MethodExited(Thread* /*thread*/, mirror::Object* /*this_object*/,
78 virtual void MethodUnwind(Thread* /*thread*/, mirror::Object* /*this_object*/,
80 virtual void FieldRead(Thread* /*thread*/, mirror::Object* /*this_object*/,
83 virtual void FieldWritten(Thread* /*thread*/, mirror::Object* /*this_object*/,
87 virtual void ExceptionCaught(Thread* /*thread*/,
90 virtual void DexPcMoved(Thread* /*sel
[all...]
/art/runtime/arch/arm/
H A Dthread_arm.cc24 void Thread::InitCpu() {
31 void Thread::CleanupCpu() {
/art/runtime/arch/arm64/
H A Dthread_arm64.cc24 void Thread::InitCpu() {
31 void Thread::CleanupCpu() {

Completed in 551 milliseconds

1234567891011>>