Home
last modified time | relevance | path

Searched refs:stk_size (Results 1 – 9 of 9) sorted by relevance

/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc83 uptr stk_size; member
96 args->stk_addr, args->stk_size, args->tls_addr, args->tls_size); in OnStarted()
123 tid, (uptr)epoch0, args->stk_addr, args->stk_size, in OnStarted()
234 uptr stk_size = 0; in ThreadStart() local
238 GetThreadStackAndTls(tid == 0, &stk_addr, &stk_size, &tls_addr, &tls_size); in ThreadStart()
241 if (stk_addr && stk_size) in ThreadStart()
242 MemoryRangeImitateWrite(thr, /*pc=*/ 1, stk_addr, stk_size); in ThreadStart()
261 OnStartedArgs args = { thr, stk_addr, stk_size, tls_addr, tls_size }; in ThreadStart()
280 if (thr->stk_addr && thr->stk_size) in ThreadFinish()
281 DontNeedShadowFor(thr->stk_addr, thr->stk_size); in ThreadFinish()
Dtsan_rtl.cc112 uptr stk_addr, uptr stk_size, in ThreadState() argument
126 , stk_size(stk_size) in ThreadState()
Dtsan_rtl.h408 const uptr stk_size; member
442 uptr stk_addr, uptr stk_size,
Dtsan_rtl_report.cc233 return ((addr >= thr->stk_addr && addr < thr->stk_addr + thr->stk_size) || in IsInStackOrTls()
246 *is_stack = (addr >= thr->stk_addr && addr < thr->stk_addr + thr->stk_size); in IsThreadStackOrTls()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_common_test.cc126 uptr stk_size = 0; in TestThreadInfo() local
129 GetThreadStackAndTls(main, &stk_addr, &stk_size, &tls_addr, &tls_size); in TestThreadInfo()
133 EXPECT_NE(stk_size, (uptr)0); in TestThreadInfo()
135 EXPECT_LT((uptr)&stack_var, stk_addr + stk_size); in TestThreadInfo()
146 EXPECT_TRUE(tls_addr < stk_addr || tls_addr >= stk_addr + stk_size); in TestThreadInfo()
147 EXPECT_TRUE(tls_end < stk_addr || tls_end >= stk_addr + stk_size); in TestThreadInfo()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux_libcdep.cc389 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls() argument
393 *stk_addr = *stk_size = *tls_addr = *tls_size = 0; in GetThreadStackAndTls()
400 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
404 if (*tls_addr > *stk_addr && *tls_addr < *stk_addr + *stk_size) { in GetThreadStackAndTls()
406 CHECK_LE(*tls_addr + *tls_size, *stk_addr + *stk_size); in GetThreadStackAndTls()
407 *stk_size -= *tls_size; in GetThreadStackAndTls()
408 *tls_addr = *stk_addr + *stk_size; in GetThreadStackAndTls()
Dsanitizer_mac.cc363 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls() argument
369 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
374 *stk_size = 0; in GetThreadStackAndTls()
Dsanitizer_win.cc698 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size, in GetThreadStackAndTls() argument
702 *stk_size = 0; in GetThreadStackAndTls()
709 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
Dsanitizer_common.h79 void GetThreadStackAndTls(bool main, uptr *stk_addr, uptr *stk_size,