/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_thread_registry.cc | 125 ThreadContextBase *tctx = QuarantinePop(); in CreateThread() local 126 if (tctx) { in CreateThread() 127 tid = tctx->tid; in CreateThread() 131 tctx = context_factory_(tid); in CreateThread() 132 threads_[tid] = tctx; in CreateThread() 143 CHECK_NE(tctx, 0); in CreateThread() 146 CHECK_EQ(tctx->status, ThreadStatusInvalid); in CreateThread() 152 tctx->SetCreated(user_id, total_threads_++, detached, in CreateThread() 161 ThreadContextBase *tctx = threads_[tid]; in RunCallbackForEachThreadLocked() local 162 if (tctx == 0) in RunCallbackForEachThreadLocked() [all …]
|
D | sanitizer_thread_registry.h | 98 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg); 103 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg); 140 void QuarantinePush(ThreadContextBase *tctx);
|
/external/jemalloc/src/ |
D | prof.c | 124 static bool prof_tctx_should_destroy(prof_tctx_t *tctx); 125 static void prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx); 197 prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated) in rb_gen() 215 if ((uintptr_t)tctx > (uintptr_t)1U) { in rb_gen() 216 malloc_mutex_lock(tctx->tdata->lock); in rb_gen() 217 tctx->prepared = false; in rb_gen() 218 if (prof_tctx_should_destroy(tctx)) in rb_gen() 219 prof_tctx_destroy(tsd, tctx); in rb_gen() 221 malloc_mutex_unlock(tctx->tdata->lock); in rb_gen() 226 prof_malloc_sample_object(const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_malloc_sample_object() argument [all …]
|
D | jemalloc.c | 1420 prof_tctx_t *tctx, bool slow_path) argument 1424 if (tctx == NULL) 1442 prof_tctx_t *tctx; local 1444 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true); 1445 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) 1446 p = imalloc_prof_sample(tsd, usize, ind, tctx, slow_path); 1450 prof_alloc_rollback(tsd, tctx, true); 1453 prof_malloc(p, usize, tctx); 1530 prof_tctx_t *tctx) argument 1534 if (tctx == NULL) [all …]
|
D | huge.c | 428 prof_tctx_t *tctx; in huge_prof_tctx_get() local 435 tctx = extent_node_prof_tctx_get(node); in huge_prof_tctx_get() 438 return (tctx); in huge_prof_tctx_get() 442 huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx) in huge_prof_tctx_set() argument 450 extent_node_prof_tctx_set(node, tctx); in huge_prof_tctx_set()
|
/external/jemalloc/include/jemalloc/internal/ |
D | prof.h | 283 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated); 285 prof_tctx_t *tctx); 286 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx); 337 void prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx); 339 prof_tctx_t *tctx); 341 prof_tctx_t *tctx); 342 void prof_malloc(const void *ptr, size_t usize, prof_tctx_t *tctx); 344 prof_tctx_t *tctx, bool prof_active, bool updated, const void *old_ptr, 410 prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx) in prof_tctx_set() argument 416 arena_prof_tctx_set(ptr, usize, tctx); in prof_tctx_set() [all …]
|
D | extent.h | 86 void extent_node_prof_tctx_set(extent_node_t *node, prof_tctx_t *tctx); 189 extent_node_prof_tctx_set(extent_node_t *node, prof_tctx_t *tctx) in extent_node_prof_tctx_set() argument 192 node->en_prof_tctx = tctx; in extent_node_prof_tctx_set()
|
D | huge.h | 28 void huge_prof_tctx_set(const void *ptr, prof_tctx_t *tctx);
|
D | arena.h | 648 void arena_prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx); 1188 arena_prof_tctx_set(const void *ptr, size_t usize, prof_tctx_t *tctx) in arena_prof_tctx_set() argument 1201 if (unlikely(usize > SMALL_MAXCLASS || (uintptr_t)tctx > in arena_prof_tctx_set() 1208 atomic_write_p(&elm->prof_tctx_pun, tctx); in arena_prof_tctx_set() 1219 huge_prof_tctx_set(ptr, tctx); in arena_prof_tctx_set()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_thread.cc | 159 ThreadContext *tctx; member 165 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in MaybeReportThreadLeak() local 166 if (tctx->detached || tctx->status != ThreadStatusFinished) in MaybeReportThreadLeak() 169 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { in MaybeReportThreadLeak() 174 ThreadLeak leak = {tctx, 1}; in MaybeReportThreadLeak() 180 static void ReportIgnoresEnabled(ThreadContext *tctx, IgnoreSet *set) { in ReportIgnoresEnabled() argument 181 if (tctx->tid == 0) { in ReportIgnoresEnabled() 185 " created at:\n", tctx->tid, tctx->name); in ReportIgnoresEnabled() 186 PrintStack(SymbolizeStackId(tctx->creation_stack_id)); in ReportIgnoresEnabled() 201 ReportIgnoresEnabled(thr->tctx, &thr->mop_ignore_set); in ThreadCheckIgnore() [all …]
|
D | tsan_rtl_report.cc | 183 void ScopedReport::AddThread(const ThreadContext *tctx, bool suppressable) { in AddThread() argument 185 if ((u32)rep_->threads[i]->id == tctx->tid) in AddThread() 191 rt->id = tctx->tid; in AddThread() 192 rt->pid = tctx->os_id; in AddThread() 193 rt->running = (tctx->status == ThreadStatusRunning); in AddThread() 194 rt->name = internal_strdup(tctx->name); in AddThread() 195 rt->parent_tid = tctx->parent_tid; in AddThread() 197 rt->stack = SymbolizeStackId(tctx->creation_stack_id); in AddThread() 203 static bool FindThreadByUidLockedCallback(ThreadContextBase *tctx, void *arg) { in FindThreadByUidLockedCallback() argument 205 return tctx->unique_id == (u32)unique_id; in FindThreadByUidLockedCallback() [all …]
|
D | tsan_rtl_mutex.cc | 364 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in UpdateClockCallback() local 365 if (tctx->status == ThreadStatusRunning) in UpdateClockCallback() 366 thr->clock.set(tctx->tid, tctx->thr->fast_state.epoch()); in UpdateClockCallback() 368 thr->clock.set(tctx->tid, tctx->epoch1); in UpdateClockCallback() 407 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in UpdateSleepClockCallback() local 408 if (tctx->status == ThreadStatusRunning) in UpdateSleepClockCallback() 409 thr->last_sleep_clock.set(tctx->tid, tctx->thr->fast_state.epoch()); in UpdateSleepClockCallback() 411 thr->last_sleep_clock.set(tctx->tid, tctx->epoch1); in UpdateSleepClockCallback()
|
D | tsan_platform_mac.cc | 143 if (thr->tctx) { in my_pthread_introspection_hook()
|
D | tsan_rtl.h | 383 ThreadContext *tctx; member 531 void AddThread(const ThreadContext *tctx, bool suppressable = false);
|
/external/compiler-rt/lib/asan/ |
D | asan_thread.cc | 254 AsanThreadContext *tctx = static_cast<AsanThreadContext*>(tctx_base); in ThreadStackContainsAddress() local 255 AsanThread *t = tctx->thread; in ThreadStackContainsAddress() 273 AsanThreadContext *tctx = GetThreadContextByTidLocked(0); in GetCurrentThread() local 274 if (ThreadStackContainsAddress(tctx, &context)) { in GetCurrentThread() 275 SetCurrentThread(tctx->thread); in GetCurrentThread() 276 return tctx->thread; in GetCurrentThread() 301 AsanThreadContext *tctx = static_cast<AsanThreadContext *>( in FindThreadByStackAddress() local 304 return tctx ? tctx->thread : nullptr; in FindThreadByStackAddress()
|
D | asan_stats.cc | 77 AsanThreadContext *tctx = static_cast<AsanThreadContext*>(tctx_base); in MergeThreadStats() local 78 if (AsanThread *t = tctx->thread) in MergeThreadStats()
|
/external/tcpdump/ |
D | signature.c | 61 MD5_CTX tctx; in signature_compute_hmac_md5() local 63 MD5_Init(&tctx); in signature_compute_hmac_md5() 64 MD5_Update(&tctx, key, key_len); in signature_compute_hmac_md5() 65 MD5_Final(tk, &tctx); in signature_compute_hmac_md5()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_thread_registry_test.cc | 52 static bool HasName(ThreadContextBase *tctx, void *arg) { in HasName() argument 54 return (0 == internal_strcmp(tctx->name, name)); in HasName() 57 static bool HasUid(ThreadContextBase *tctx, void *arg) { in HasUid() argument 59 return (tctx->user_id == uid); in HasUid() 62 static void MarkUidAsPresent(ThreadContextBase *tctx, void *arg) { in MarkUidAsPresent() argument 64 arr[tctx->tid] = true; in MarkUidAsPresent()
|
/external/compiler-rt/lib/lsan/ |
D | lsan_thread.cc | 109 static bool FindThreadByUid(ThreadContextBase *tctx, void *arg) { in FindThreadByUid() argument 111 if (tctx->user_id == uid && tctx->status != ThreadStatusInvalid) { in FindThreadByUid()
|
/external/boringssl/src/ssl/ |
D | s3_srvr.c | 2009 SSL_CTX *tctx = ssl->initial_ctx; in ssl3_send_new_session_ticket() local 2058 if (tctx->tlsext_ticket_key_cb) { in ssl3_send_new_session_ticket() 2059 if (tctx->tlsext_ticket_key_cb(ssl, key_name, iv, &ctx, &hctx, in ssl3_send_new_session_ticket() 2066 tctx->tlsext_tick_aes_key, iv) || in ssl3_send_new_session_ticket() 2067 !HMAC_Init_ex(&hctx, tctx->tlsext_tick_hmac_key, 16, tlsext_tick_md(), in ssl3_send_new_session_ticket() 2071 memcpy(key_name, tctx->tlsext_tick_key_name, 16); in ssl3_send_new_session_ticket()
|
/external/jemalloc/ |
D | ChangeLog | 117 than dereferencing a potentially invalid tctx. 161 prof_malloc_sample_object(). Prior to this fix, if tctx and old_tctx were 162 the same, the tctx could have been prematurely destroyed.
|