/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_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); 74 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; 40 return CurrentStackId(thr, pc); 43 return thr->unique_id; 47 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) 366 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local 409 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local [all...] |
tsan_mman.cc | 58 void AllocatorThreadStart(ThreadState *thr) { 59 allocator()->InitCache(&thr->alloc_cache); 60 internal_allocator()->InitCache(&thr->internal_alloc_cache); 63 void AllocatorThreadFinish(ThreadState *thr) { 64 allocator()->DestroyCache(&thr->alloc_cache); 65 internal_allocator()->DestroyCache(&thr->internal_alloc_cache); 72 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { 73 if (!thr->in_signal_handler || !flags()->report_signal_unsafe) 76 stack.ObtainCurrent(thr, pc); 81 OutputReport(thr, rep) 147 ThreadState *thr = cur_thread(); local 155 ThreadState *thr = cur_thread(); local 163 ThreadState *thr = cur_thread(); local 173 ThreadState *thr = cur_thread(); local 240 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)); 62 static void unref(ThreadState *thr, uptr pc, FdSync *s) { 68 user_free(thr, pc, s); 73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { 81 void *p = user_alloc(thr, pc, size); 83 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size); 87 user_free(thr, pc, p); 93 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { 94 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 | 282 void Initialize(ThreadState *thr) { 326 int tid = ThreadCreate(thr, 0, 0, true); 328 ThreadStart(thr, tid, internal_getpid()); 341 int Finalize(ThreadState *thr) { 345 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1) 359 ThreadFinalize(thr); 385 StatAggregate(ctx->stat, thr->stat); 391 void ForkBefore(ThreadState *thr, uptr pc) { 396 void ForkParentAfter(ThreadState *thr, uptr pc) { 401 void ForkChildAfter(ThreadState *thr, uptr pc) [all...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_stack_test.cc | 21 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); 23 thr.shadow_stack = &stack[0]; 24 thr.shadow_stack_pos = &stack[0]; 25 thr.shadow_stack_end = &stack[128]; 27 trace->ObtainCurrent(&thr, 0); 30 trace->ObtainCurrent(&thr, 42); 34 *thr.shadow_stack_pos++ = 100; 35 *thr.shadow_stack_pos++ = 101; 36 trace->ObtainCurrent(&thr, 0); 41 trace->ObtainCurrent(&thr, 42) [all...] |
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...] |
/external/compiler-rt/lib/tsan/dd/ |
dd_rtl.cc | 21 static u32 CurrentStackTrace(Thread *thr, uptr skip) { 23 thr->ignore_interceptors = true; 25 thr->ignore_interceptors = false; 31 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 | 36 Thread *thr; member in struct:__dsan::Callback 38 Callback(Thread *thr); 59 void ThreadInit(Thread *thr); 60 void ThreadDestroy(Thread *thr); 62 void MutexBeforeLock(Thread *thr, uptr m, bool writelock); 63 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock); 64 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock); 65 void MutexDestroy(Thread *thr, uptr m);
|
/external/compiler-rt/lib/tsan/go/ |
tsan_go.cc | 95 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, local 97 internal_memset(thr, 0, sizeof(*thr)); 98 return thr; 103 ThreadState *thr = AllocGoroutine(); local 104 main_thr = *thrp = thr; 105 Initialize(thr); 111 ThreadState *thr = main_thr; local 112 int res = Finalize(thr); 120 void __tsan_read(ThreadState *thr, void *addr, void *pc) 167 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/main/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/test/tsan/ |
sunrpc.cc | 7 void *thr(void *p) { function 17 pthread_create(&th[0], 0, thr, 0); 18 pthread_create(&th[1], 0, thr, 0);
|
/external/valgrind/main/helgrind/ |
libhb.h | 37 /* typedef struct _Thr Thr; */ /* now in hg_lock_n_thread.h */ 42 /* Initialise library; returns Thr* for root thread. 'shadow_alloc' 45 Thr* libhb_init ( 46 void (*get_stacktrace)( Thr*, Addr*, UWord ), 47 ExeContext* (*get_EC)( Thr* ) 54 /* Thread creation: returns Thr* for new thread */ 55 Thr* libhb_create ( Thr* parent ); 58 void libhb_async_exit ( Thr* exitter ); 59 void libhb_joinedwith_done ( Thr* exitter ) [all...] |