/dalvik/dexgen/src/com/android/dexgen/util/ |
DexClassLoadingException.java | 30 * @param thr {@code non-null;} lower level exception with more detailed 33 public DexClassLoadingException(Throwable thr) { 34 super("Loading generated dex class has failed", thr);
|
/external/compiler-rt/test/asan/TestCases/Windows/ |
thread_suspended.cc | 15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, CREATE_SUSPENDED, NULL); local 16 ResumeThread(thr); 17 if (thr == 0) 19 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 22 GetExitCodeThread(thr, &exitcode); 25 CloseHandle(thr);
|
thread_stack_reuse.cc | 22 HANDLE thr = NULL; local 24 thr = CreateThread(NULL, 0, thread_proc_1, NULL, 0, NULL); 25 if (thr == 0) 27 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 30 thr = CreateThread(NULL, 0, thread_proc_2, NULL, 0, NULL); 31 if (thr == 0) 33 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 35 CloseHandle(thr);
|
beginthreadex.cc | 15 HANDLE thr = (HANDLE)_beginthreadex(NULL, 0, thread_proc, NULL, 0, NULL); local 16 if (thr == 0) 18 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 20 CloseHandle(thr);
|
thread_simple.cc | 15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 16 if (thr == 0) 18 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE)) 21 GetExitCodeThread(thr, &exitcode); 24 CloseHandle(thr);
|
dll_thread_stack_array_left_oob.cc | 26 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 31 if (thr == 0) 33 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
|
thread_stack_array_left_oob.cc | 19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 24 if (thr == 0) return 0; 26 WaitForSingleObject(thr, INFINITE);
|
thread_stack_array_right_oob.cc | 19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local 24 if (thr == 0) return 0; 26 WaitForSingleObject(thr, INFINITE);
|
thread_stress.cc | 16 HANDLE thr[NUM_THREADS]; local 18 thr[i] = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); 19 if (thr[i] == 0) 23 if (WAIT_OBJECT_0 != WaitForSingleObject(thr[i], INFINITE)) 25 CloseHandle(thr[i]);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldThrowableTest.java | 26 Throwable thr = new Throwable(message, npe); local 27 assertEquals("message is incorrect.", message, thr.getMessage()); 28 assertEquals("cause is incorrect.", npe, thr.getCause()); 30 thr = new Throwable(null, npe); 31 assertNull("message is not null.", thr.getMessage()); 32 assertEquals("cause is incorrect.", npe, thr.getCause()); 34 thr = new Throwable(message, null); 35 assertEquals("message is incorrect.", message, thr.getMessage()); 36 assertNull("cause is not null.", thr.getCause()); 42 Throwable thr = new Throwable(npe) local 74 Throwable thr = new Throwable(message, npe); local 83 Throwable thr = new Throwable(); local 118 Throwable thr = new Throwable(npe); local [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_fd.h | 42 void FdAcquire(ThreadState *thr, uptr pc, int fd); 43 void FdRelease(ThreadState *thr, uptr pc, int fd); 44 void FdAccess(ThreadState *thr, uptr pc, int fd); 45 void FdClose(ThreadState *thr, uptr pc, int fd); 46 void FdFileCreate(ThreadState *thr, uptr pc, int fd); 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd); 48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd); 49 void FdEventCreate(ThreadState *thr, uptr pc, int fd); 50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd); 51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd) [all...] |
tsan_rtl_thread.cc | 27 , thr() 49 ThreadState *thr; member in struct:__tsan::OnCreatedArgs 54 thr = 0; 58 args->thr->fast_state.IncrementEpoch(); 60 TraceAddEvent(args->thr, args->thr->fast_state, EventTypeMop, 0); 61 ReleaseImpl(args->thr, 0, &sync); 62 creation_stack_id = CurrentStackId(args->thr, args->pc); 64 StatInc(args->thr, StatThreadMaxTid); 79 ThreadState *thr; member in struct:__tsan::OnStartedArgs [all...] |
tsan_rtl_mutex.cc | 26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r); 29 ThreadState *thr; member in struct:__tsan::Callback 32 Callback(ThreadState *thr, uptr pc) 33 : thr(thr) 35 DDCallback::pt = thr->dd_pt; 36 DDCallback::lt = thr->dd_lt; 39 u32 Unwind() override { return CurrentStackId(thr, pc); } 40 int UniqueTid() override { return thr->unique_id; } 43 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) 363 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local 406 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local [all...] |
tsan_mman.cc | 51 void AllocatorThreadStart(ThreadState *thr) { 52 allocator()->InitCache(&thr->alloc_cache); 53 internal_allocator()->InitCache(&thr->internal_alloc_cache); 56 void AllocatorThreadFinish(ThreadState *thr) { 57 allocator()->DestroyCache(&thr->alloc_cache); 58 internal_allocator()->DestroyCache(&thr->internal_alloc_cache); 65 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { 66 if (atomic_load(&thr->in_signal_handler, memory_order_relaxed) == 0 || 70 ObtainCurrentStack(thr, pc, &stack); 75 OutputReport(thr, rep) 152 ThreadState *thr = cur_thread(); local 159 ThreadState *thr = cur_thread(); local 166 ThreadState *thr = cur_thread(); local 175 ThreadState *thr = cur_thread(); local 221 ThreadState *thr = cur_thread(); local [all...] |
tsan_fd.cc | 50 static FdSync *allocsync(ThreadState *thr, uptr pc) { 51 FdSync *s = (FdSync*)user_alloc(thr, pc, sizeof(FdSync), kDefaultAlignment, 63 static void unref(ThreadState *thr, uptr pc, FdSync *s) { 69 user_free(thr, pc, s, false); 74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { 82 void *p = user_alloc(thr, pc, size, kDefaultAlignment, false); 84 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size); 88 user_free(thr, pc, p, false); 94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { 95 FdDesc *d = fddesc(thr, pc, fd) [all...] |
tsan_update_shadow_word_inl.h | 17 StatInc(thr, StatShadowProcessed); 22 StatInc(thr, StatShadowZero); 31 StatInc(thr, StatShadowSameSize); 34 StatInc(thr, StatShadowSameThread); 39 StatInc(thr, StatShadowAnotherThread); 40 if (HappensBefore(old, thr)) { 50 StatInc(thr, StatShadowIntersect); 52 StatInc(thr, StatShadowSameThread); 55 StatInc(thr, StatShadowAnotherThread); 58 if (HappensBefore(old, thr)) [all...] |
tsan_rtl.cc | 303 void Initialize(ThreadState *thr) { 350 int tid = ThreadCreate(thr, 0, 0, true); 352 ThreadStart(thr, tid, internal_getpid()); 365 int Finalize(ThreadState *thr) { 368 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1) 381 ThreadFinalize(thr); 408 StatAggregate(ctx->stat, thr->stat); 416 void ForkBefore(ThreadState *thr, uptr pc) { 421 void ForkParentAfter(ThreadState *thr, uptr pc) { 426 void ForkChildAfter(ThreadState *thr, uptr pc) [all...] |
/external/compiler-rt/lib/tsan/dd/ |
dd_rtl.cc | 22 static u32 CurrentStackTrace(Thread *thr, uptr skip) { 24 thr->ignore_interceptors = true; 26 thr->ignore_interceptors = false; 32 static void PrintStackTrace(Thread *thr, u32 stk) { 34 thr->ignore_interceptors = true; 36 thr->ignore_interceptors = false; 39 static void ReportDeadlock(Thread *thr, DDReport *rep) { 48 PrintStackTrace(thr, rep->loop[i].stk[1]); 52 PrintStackTrace(thr, rep->loop[i].stk[0]); 58 Callback::Callback(Thread *thr) [all...] |
dd_rtl.h | 35 Thread *thr; member in struct:__dsan::Callback 37 Callback(Thread *thr); 58 void ThreadInit(Thread *thr); 59 void ThreadDestroy(Thread *thr); 61 void MutexBeforeLock(Thread *thr, uptr m, bool writelock); 62 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock); 63 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock); 64 void MutexDestroy(Thread *thr, uptr m);
|
/external/compiler-rt/lib/tsan/go/ |
tsan_go.cc | 78 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, local 80 internal_memset(thr, 0, sizeof(*thr)); 81 return thr; 86 ThreadState *thr = AllocGoroutine(); local 87 main_thr = *thrp = thr; 88 Initialize(thr); 94 ThreadState *thr = main_thr; local 95 int res = Finalize(thr); 103 void __tsan_read(ThreadState *thr, void *addr, void *pc) 150 ThreadState *thr = AllocGoroutine(); local [all...] |
test.c | 16 void __tsan_init(void **thr, void (*cb)(void*)); 19 void __tsan_go_start(void *thr, void **chthr, void *pc); 20 void __tsan_go_end(void *thr); 21 void __tsan_read(void *thr, void *addr, void *pc); 22 void __tsan_write(void *thr, void *addr, void *pc); 23 void __tsan_func_enter(void *thr, void *pc); 24 void __tsan_func_exit(void *thr); 26 void __tsan_acquire(void *thr, void *addr); 27 void __tsan_release(void *thr, void *addr); 28 void __tsan_release_merge(void *thr, void *addr) [all...] |
/external/valgrind/drd/tests/ |
pth_create_glibc_2_0.c | 28 pthread_t thr; local 30 result = (*pthread_create_glibc_2_0)(&thr, 0, thread_func, 0); 36 pthread_join(thr, 0);
|
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_mman_test.cc | 38 ThreadState *thr = cur_thread(); local 40 char *p = (char*)user_alloc(thr, pc, 10); 42 char *p2 = (char*)user_alloc(thr, pc, 20); 47 user_free(thr, pc, p); 48 user_free(thr, pc, p2); 52 ThreadState *thr = cur_thread(); local 55 void *p = user_realloc(thr, pc, 0, 0); 61 void *p = user_realloc(thr, pc, 0, 100); 64 user_free(thr, pc, p); 67 void *p = user_alloc(thr, pc, 100) 97 ThreadState *thr = cur_thread(); local 110 ThreadState *thr = cur_thread(); local [all...] |
tsan_stack_test.cc | 22 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); 24 thr.shadow_stack = &stack[0]; 25 thr.shadow_stack_pos = &stack[0]; 26 thr.shadow_stack_end = &stack[128]; 28 ObtainCurrentStack(&thr, 0, trace); 31 ObtainCurrentStack(&thr, 42, trace); 35 *thr.shadow_stack_pos++ = 100; 36 *thr.shadow_stack_pos++ = 101; 37 ObtainCurrentStack(&thr, 0, trace); 42 ObtainCurrentStack(&thr, 42, trace) [all...] |
/external/compiler-rt/test/tsan/ |
sunrpc.cc | 8 void *thr(void *p) { function 18 pthread_create(&th[0], 0, thr, 0); 19 pthread_create(&th[1], 0, thr, 0);
|