/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/lib/tsan/rtl/ |
tsan_rtl_mutex.cc | 23 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, 26 CHECK_GT(thr->in_rtl, 0); 27 DPrintf("#%d: MutexCreate %zx\n", thr->tid, addr); 28 StatInc(thr, StatMutexCreate); 30 CHECK(!thr->is_freeing); 31 thr->is_freeing = true; 32 MemoryWrite(thr, pc, addr, kSizeLog1); 33 thr->is_freeing = false; 35 SyncVar *s = ctx->synctab.GetOrCreateAndLock(thr, pc, addr, true); 42 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr) 252 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local 288 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local [all...] |
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() 50 ThreadState *thr; member in struct:__tsan::OnCreatedArgs 55 thr = 0; 59 args->thr->fast_state.IncrementEpoch(); 61 TraceAddEvent(args->thr, args->thr->fast_state, EventTypeMop, 0); 62 args->thr->clock.set(args->thr->tid, args->thr->fast_state.epoch()); 63 args->thr->fast_synch_epoch = args->thr->fast_state.epoch() 83 ThreadState *thr; member in struct:__tsan::OnStartedArgs [all...] |
tsan_fd.cc | 57 static void unref(ThreadState *thr, uptr pc, FdSync *s) { 63 SyncVar *v = CTX()->synctab.GetAndRemove(thr, pc, (uptr)s); 71 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { 79 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size); 89 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { 90 FdDesc *d = fddesc(thr, pc, fd); 94 unref(thr, pc, d->sync); 98 unref(thr, pc, s); 102 unref(thr, pc, s); 105 d->creation_tid = thr->tid [all...] |
tsan_update_shadow_word_inl.h | 17 StatInc(thr, StatShadowProcessed); 23 StatInc(thr, StatShadowZero); 32 StatInc(thr, StatShadowSameSize); 35 StatInc(thr, StatShadowSameThread); 36 if (OldIsInSameSynchEpoch(old, thr)) { 40 StatInc(thr, StatMopSame); 50 StatInc(thr, StatShadowAnotherThread); 51 if (HappensBefore(old, thr)) { 62 StatInc(thr, StatShadowIntersect); 64 StatInc(thr, StatShadowSameThread) [all...] |
tsan_mman.cc | 76 void AllocatorThreadStart(ThreadState *thr) { 77 allocator()->InitCache(&thr->alloc_cache); 80 void AllocatorThreadFinish(ThreadState *thr) { 81 allocator()->DestroyCache(&thr->alloc_cache); 88 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { 89 if (!thr->in_signal_handler || !flags()->report_signal_unsafe) 93 stack.ObtainCurrent(thr, pc); 102 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align) { 103 CHECK_GT(thr->in_rtl, 0); 104 void *p = allocator()->Allocate(&thr->alloc_cache, sz, align) 176 ThreadState *thr = cur_thread(); local 184 ThreadState *thr = cur_thread(); local 191 ThreadState *thr = cur_thread(); local 201 ThreadState *thr = cur_thread(); local 258 ThreadState *thr = cur_thread(); local [all...] |
tsan_rtl.cc | 164 void Initialize(ThreadState *thr) { 214 int tid = ThreadCreate(thr, 0, 0, true); 216 ThreadStart(thr, tid, GetPid()); 217 CHECK_EQ(thr->in_rtl, 1); 228 int Finalize(ThreadState *thr) { 233 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1) 245 ThreadFinalize(thr); 264 StatAggregate(ctx->stat, thr->stat); 270 u32 CurrentStackId(ThreadState *thr, uptr pc) { 271 if (thr->shadow_stack_pos == 0) // May happen during bootstrap [all...] |
tsan_mman.h | 23 void AllocatorThreadStart(ThreadState *thr); 24 void AllocatorThreadFinish(ThreadState *thr); 28 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, 31 void user_free(ThreadState *thr, uptr pc, void *p); 32 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 33 void *user_alloc_aligned(ThreadState *thr, uptr pc, uptr sz, uptr align); 34 uptr user_alloc_usable_size(ThreadState *thr, uptr pc, void *p); 37 MBlock *user_mblock(ThreadState *thr, void *p);
|
tsan_interface_java.cc | 43 ThreadState *thr = cur_thread(); local 47 StatInc(thr, StatSyncDestroyed); 50 thr->mset.Remove(s->GetId()); 76 ScopedJavaFunc(ThreadState *thr, uptr pc) 77 : thr_(thr) { 79 FuncEntry(thr, pc); 120 SyncVar* GetJavaSync(ThreadState *thr, uptr pc, uptr addr, 126 DPrintf("#%d: GetJavaSync %p->%p\n", thr->tid, addr, b); 131 DPrintf("#%d: found existing sync for %p\n", thr->tid, addr); 136 DPrintf("#%d: creating new sync for %p\n", thr->tid, addr) [all...] |
tsan_rtl.h | 470 ThreadState *thr; member in class:__tsan::ThreadContext 577 void ALWAYS_INLINE INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) { 579 thr->stat[typ] += n; 581 void ALWAYS_INLINE INLINE StatSet(ThreadState *thr, StatType typ, u64 n) { 583 thr->stat[typ] = n; 593 void ReportRace(ThreadState *thr); 617 u32 CurrentStackId(ThreadState *thr, uptr pc); 618 void PrintCurrentStack(ThreadState *thr, uptr pc); 621 void Initialize(ThreadState *thr); 622 int Finalize(ThreadState *thr); [all...] |
tsan_interceptors.cc | 128 static SignalContext *SigCtx(ThreadState *thr) { 129 SignalContext *ctx = (SignalContext*)thr->signal_ctx; 130 if (ctx == 0 && thr->is_alive) { 133 MemoryResetRange(thr, (uptr)&SigCtx, (uptr)ctx, sizeof(*ctx)); 134 thr->signal_ctx = ctx; 143 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc); 150 ScopedInterceptor::ScopedInterceptor(ThreadState *thr, const char *fname, 152 : thr_(thr) 153 , in_rtl_(thr->in_rtl) { 155 Initialize(thr); 295 ThreadState * thr = cur_thread(); local 688 ThreadState *thr = cur_thread(); local 711 ThreadState *thr = cur_thread(); local 1571 ThreadState *thr = cur_thread(); local 1744 ThreadState *thr; member in struct:TsanInterceptorContext [all...] |
tsan_sync.cc | 51 SyncVar* SyncTab::GetOrCreateAndLock(ThreadState *thr, uptr pc, 53 return GetAndLock(thr, pc, addr, write_lock, true); 60 SyncVar* SyncTab::Create(ThreadState *thr, uptr pc, uptr addr) { 61 StatInc(thr, StatSyncCreated); 66 res->creation_stack_id = CurrentStackId(thr, pc); 71 SyncVar* SyncTab::GetAndLock(ThreadState *thr, uptr pc, 75 SyncVar *res = GetJavaSync(thr, pc, addr, write_lock, create); 84 MBlock *b = user_mblock(thr, (void*)addr); 94 res = Create(thr, pc, addr); 128 res = Create(thr, pc, addr) [all...] |
/external/compiler-rt/lib/tsan/go/ |
tsan_go.cc | 82 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, local 84 internal_memset(thr, 0, sizeof(*thr)); 85 return thr; 89 ThreadState *thr = AllocGoroutine(); local 90 main_thr = *thrp = thr; 91 thr->in_rtl++; 92 Initialize(thr); 93 thr->in_rtl--; 98 ThreadState *thr = main_thr local 148 ThreadState *thr = AllocGoroutine(); local [all...] |
test.c | 16 void __tsan_init(void **thr); 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); 25 void __tsan_malloc(void *thr, void *p, unsigned long sz, void *pc); 27 void __tsan_acquire(void *thr, void *addr); 28 void __tsan_release(void *thr, void *addr) [all...] |
/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/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/lib/tsan/tests/unit/ |
tsan_stack_test.cc | 21 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0); 23 trace->ObtainCurrent(&thr, 0); 26 trace->ObtainCurrent(&thr, 42); 30 *thr.shadow_stack_pos++ = 100; 31 *thr.shadow_stack_pos++ = 101; 32 trace->ObtainCurrent(&thr, 0); 37 trace->ObtainCurrent(&thr, 42); 63 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0); 65 *thr.shadow_stack_pos++ = 100; 66 *thr.shadow_stack_pos++ = 101 [all...] |
tsan_mman_test.cc | 49 ThreadState *thr = cur_thread(); local 51 char *p = (char*)user_alloc(thr, pc, 10); 53 char *p2 = (char*)user_alloc(thr, pc, 20); 56 MBlock *b = user_mblock(thr, p); 59 MBlock *b2 = user_mblock(thr, p2); 64 EXPECT_EQ(b, user_mblock(thr, p + i)); 68 EXPECT_EQ(b2, user_mblock(thr, p2 + i)); 70 user_free(thr, pc, p); 71 user_free(thr, pc, p2); 76 ThreadState *thr = cur_thread() local 122 ThreadState *thr = cur_thread(); local 135 ThreadState *thr = cur_thread(); local [all...] |
/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...] |
hg_main.c | 160 ThreadId map_threads_maybe_reverse_lookup_SLOW ( Thread* thr ); /*fwds*/ 164 static Thread* mk_Thread ( Thr* hbthr ) { 232 /* Update 'lk' to reflect that 'thr' now has a write-acquisition of 235 static void lockN_acquire_writer ( Lock* lk, Thread* thr ) 238 tl_assert(HG_(is_sane_Thread)(thr)); 248 tid = map_threads_maybe_reverse_lookup_SLOW(thr); 263 VG_(addToBag)( lk->heldBy, (Word)thr ); 272 /* assert: .. and that thread is 'thr'. */ 273 tl_assert(VG_(elemBag)(lk->heldBy, (Word)thr) 275 VG_(addToBag)(lk->heldBy, (Word)thr); 352 Thread* thr; local 472 Thread* thr; local 551 Thread* thr; local 616 Thread* thr; local 625 Thread* thr; local 659 Thread* thr; local 815 Thread* thr; local 875 Thread* thr; local 1374 Thread* thr; local 1616 Thread* thr; local 1764 Thread* thr; local 1786 Thread* thr = get_current_Thread_in_C_C(); local 1793 Thread* thr = get_current_Thread_in_C_C(); local 1800 Thread* thr = get_current_Thread_in_C_C(); local 1807 Thread* thr = get_current_Thread_in_C_C(); local 1814 Thread* thr = get_current_Thread_in_C_C(); local 1821 Thread* thr = get_current_Thread_in_C_C(); local 1828 Thread* thr = get_current_Thread_in_C_C(); local 1835 Thread* thr = get_current_Thread_in_C_C(); local 1842 Thread* thr = get_current_Thread_in_C_C(); local 1849 Thread* thr = get_current_Thread_in_C_C(); local 1880 Thread* thr; local 1929 Thread* thr; local 1970 Thread* thr; local 1988 Thread* thr; local 2002 Thread* thr; local 2023 Thread* thr; local 2154 Thread* thr; local 2188 Thread* thr; local 2264 Thread* thr; local 2334 Thread* thr; local 2411 Thread* thr; local 2462 Thread* thr; local 2487 Thread* thr; local 2507 Thread* thr; local 2521 Thread* thr; local 2653 Thread* thr; local 2700 Thread* thr; local 2728 Thread* thr; local 2830 Thread* thr; local 2885 Thread* thr; local 3006 Thread* thr; local 3049 Thread* thr; local 3170 Thread* thr; local 3195 Thread* thr; local 3855 Thread* thr; \/* allocating thread *\/ member in struct:__anon17064 4845 Thread* thr = map_threads_maybe_lookup( tid ); local 5069 Thread* thr; local 5086 Thread* thr; local [all...] |
hg_lock_n_thread.c | 48 inline Bool HG_(is_sane_Thread) ( Thread* thr ) { 49 return thr != NULL && thr->magic == Thread_MAGIC; 54 Thread* thr; local 57 while (VG_(nextIterBag)( bag, (Word*)&thr, &count )) { 59 if (!HG_(is_sane_Thread)(thr)) return False;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
post_proc.h | 37 #define INDEX(x,thr) (((x)>=thr)?1:0)
|
adaptive_smooth_no_mmx.cpp | 48 thr = value of type int that is compared to the elements in Rec_Y to 119 luminance values to a threshold value ("thr") and then changing the 218 int thr, /* i */ 258 / the threshold value (thr) */ 273 /* sum of 0's and 1's (0 if pixel value is below thr, 1 if value 274 /is above thr) */ 275 *sign_V_ptr++ = INDEX(pelu, thr) + INDEX(pelc, thr) + INDEX(pell, thr); 287 /* sum of 0's and 1's (0 if pixel value is below thr, 1 if valu [all...] |
/external/valgrind/main/helgrind/tests/ |
bar_trivial.c | 38 pthread_t thr[NTHR]; local 44 r = pthread_create(&thr[i], NULL, child_fn, (void*)i); 49 r = pthread_join(thr[i], NULL);
|