Home | History | Annotate | Download | only in sanitizer_common

Lines Matching defs:stacksize

99     // Get stacksize from rlimit, but clip it so that it does not overlap
101 uptr stacksize = rl.rlim_cur;
102 if (stacksize > end - prev_end)
103 stacksize = end - prev_end;
107 if (stacksize > kMaxThreadStackSize)
108 stacksize = kMaxThreadStackSize;
110 *stack_bottom = end - stacksize;
116 uptr stacksize = 0;
118 my_pthread_attr_getstack(&attr, &stackaddr, (size_t*)&stacksize);
121 CHECK_LE(stacksize, kMaxThreadStackSize); // Sanity check.
122 *stack_top = (uptr)stackaddr + stacksize;
378 size_t stacksize = 0;
379 my_pthread_attr_getstack(attr, (void**)&stackaddr, &stacksize);
380 // GLibC will return (0 - stacksize) as the stack address in the case when
381 // stacksize is set, but stackaddr is not.
382 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0);
385 if (stacksize < minstacksize) {
387 if (stacksize != 0) {
388 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize,
394 "%zu < %zu\n", stacksize, minstacksize);