Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 174) sorted by relevance

1234567

/netbsd/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_rtems.cc94 uptr stack_bottom, stack_size, tls_bottom, tls_size; member
100 uptr stack_bottom, uptr stack_size, in CreateAsanThread() argument
110 const AsanThread::InitOptions options = {stack_bottom, stack_size, in CreateAsanThread()
123 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
125 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
141 uptr stack_bottom, uptr stack_size, in BeforeThreadCreateHook() argument
151 stack_bottom, stack_size, tls_bottom, tls_size); in BeforeThreadCreateHook()
191 PoisonShadow(thread->stack_bottom(), thread->stack_size(), 0); in ThreadStartHook()
226 void *stack_base, size_t stack_size, in __sanitizer_before_thread_create_hook() argument
230 reinterpret_cast<uptr>(stack_base), stack_size, in __sanitizer_before_thread_create_hook()
H A Dasan_fuchsia.cc85 uptr stack_bottom, stack_size; member
92 uptr stack_size) { in CreateAsanThread() argument
104 const AsanThread::InitOptions options = {stack_bottom, stack_size}; in CreateAsanThread()
119 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
121 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
145 uptr stack_size) { in BeforeThreadCreateHook() argument
154 stack_bottom, stack_size); in BeforeThreadCreateHook()
198 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument
201 reinterpret_cast<uptr>(stack_base), stack_size); in __sanitizer_before_thread_create_hook()
H A Dasan_thread.cc189 uptr AsanThread::stack_size() { in stack_size() function in __asan::AsanThread
197 uptr stack_size = this->stack_size(); in AsyncSignalSafeLazyInitFakeStack() local
198 if (stack_size == 0) // stack_size is not yet available, don't use FakeStack. in AsyncSignalSafeLazyInitFakeStack()
210 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); in AsyncSignalSafeLazyInitFakeStack()
226 CHECK_EQ(this->stack_size(), 0U); in Init()
228 CHECK_GT(this->stack_size(), 0U); in Init()
293 uptr stack_size = 0; in SetThreadStackAndTls() local
295 const_cast<uptr *>(&stack_size), &tls_begin_, &tls_size); in SetThreadStackAndTls()
296 stack_top_ = stack_bottom_ + stack_size; in SetThreadStackAndTls()
/netbsd/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_rtems.cc96 uptr stack_bottom, stack_size, tls_bottom, tls_size; member
102 uptr stack_bottom, uptr stack_size, in CreateAsanThread() argument
112 const AsanThread::InitOptions options = {stack_bottom, stack_size, in CreateAsanThread()
125 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
127 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
143 uptr stack_bottom, uptr stack_size, in BeforeThreadCreateHook() argument
153 stack_bottom, stack_size, tls_bottom, tls_size); in BeforeThreadCreateHook()
193 PoisonShadow(thread->stack_bottom(), thread->stack_size(), 0); in ThreadStartHook()
234 void *stack_base, size_t stack_size, in __sanitizer_before_thread_create_hook() argument
238 reinterpret_cast<uptr>(stack_base), stack_size, in __sanitizer_before_thread_create_hook()
H A Dasan_fuchsia.cc87 uptr stack_bottom, stack_size; member
94 uptr stack_size) { in CreateAsanThread() argument
106 const AsanThread::InitOptions options = {stack_bottom, stack_size}; in CreateAsanThread()
121 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
123 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
147 uptr stack_size) { in BeforeThreadCreateHook() argument
156 stack_bottom, stack_size); in BeforeThreadCreateHook()
207 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument
210 reinterpret_cast<uptr>(stack_base), stack_size); in __sanitizer_before_thread_create_hook()
H A Dasan_thread.cc187 uptr AsanThread::stack_size() { in stack_size() function in __asan::AsanThread
195 uptr stack_size = this->stack_size(); in AsyncSignalSafeLazyInitFakeStack() local
196 if (stack_size == 0) // stack_size is not yet available, don't use FakeStack. in AsyncSignalSafeLazyInitFakeStack()
208 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); in AsyncSignalSafeLazyInitFakeStack()
224 CHECK_EQ(this->stack_size(), 0U); in Init()
227 CHECK_GT(this->stack_size(), 0U); in Init()
293 uptr stack_size = 0; in SetThreadStackAndTls() local
294 GetThreadStackAndTls(tid() == 0, &stack_bottom_, &stack_size, &tls_begin_, in SetThreadStackAndTls()
296 stack_top_ = stack_bottom_ + stack_size; in SetThreadStackAndTls()
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_rtems.cc94 uptr stack_bottom, stack_size, tls_bottom, tls_size; member
100 uptr stack_bottom, uptr stack_size, in CreateAsanThread() argument
110 const AsanThread::InitOptions options = {stack_bottom, stack_size, in CreateAsanThread()
123 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
125 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
141 uptr stack_bottom, uptr stack_size, in BeforeThreadCreateHook() argument
151 stack_bottom, stack_size, tls_bottom, tls_size); in BeforeThreadCreateHook()
191 PoisonShadow(thread->stack_bottom(), thread->stack_size(), 0); in ThreadStartHook()
226 void *stack_base, size_t stack_size, in __sanitizer_before_thread_create_hook() argument
230 reinterpret_cast<uptr>(stack_base), stack_size, in __sanitizer_before_thread_create_hook()
H A Dasan_fuchsia.cc85 uptr stack_bottom, stack_size; member
92 uptr stack_size) { in CreateAsanThread() argument
104 const AsanThread::InitOptions options = {stack_bottom, stack_size}; in CreateAsanThread()
119 CHECK_NE(options->stack_size, 0); in SetThreadStackAndTls()
121 stack_top_ = options->stack_bottom + options->stack_size; in SetThreadStackAndTls()
145 uptr stack_size) { in BeforeThreadCreateHook() argument
154 stack_bottom, stack_size); in BeforeThreadCreateHook()
198 size_t stack_size) { in __sanitizer_before_thread_create_hook() argument
201 reinterpret_cast<uptr>(stack_base), stack_size); in __sanitizer_before_thread_create_hook()
H A Dasan_thread.cc189 uptr AsanThread::stack_size() { in stack_size() function in __asan::AsanThread
197 uptr stack_size = this->stack_size(); in AsyncSignalSafeLazyInitFakeStack() local
198 if (stack_size == 0) // stack_size is not yet available, don't use FakeStack. in AsyncSignalSafeLazyInitFakeStack()
210 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); in AsyncSignalSafeLazyInitFakeStack()
226 CHECK_EQ(this->stack_size(), 0U); in Init()
228 CHECK_GT(this->stack_size(), 0U); in Init()
293 uptr stack_size = 0; in SetThreadStackAndTls() local
295 const_cast<uptr *>(&stack_size), &tls_begin_, &tls_size); in SetThreadStackAndTls()
296 stack_top_ = stack_bottom_ + stack_size; in SetThreadStackAndTls()
/netbsd/external/mit/libuv/dist/test/
H A Dtest-thread.c224 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
233 size_t stack_size; in thread_check_stack()
239 ASSERT(0 == pthread_attr_getstacksize(&attr, &stack_size)); in thread_check_stack()
240 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
243 ASSERT(stack_size >= expected); in thread_check_stack()
261 options.stack_size = 1024 * 1024; in TEST_IMPL()
271 options.stack_size = 0; in TEST_IMPL()
276 options.stack_size = 42; in TEST_IMPL()
282 options.stack_size = PTHREAD_STACK_MIN - 42; /* unaligned size */ in TEST_IMPL()
287 options.stack_size = PTHREAD_STACK_MIN / 2 - 42; /* unaligned size */ in TEST_IMPL()
[all …]
/netbsd/external/gpl3/gcc/dist/gcc/
H A Dipa-utils.c62 int stack_size; member
93 env->stack[(env->stack_size)++] = v; in searchc()
132 x = env->stack[--(env->stack_size)]; in searchc()
170 env.stack_size = 0; in ipa_reduced_postorder()
279 int stack_size = 0; in ipa_reverse_postorder() local
303 stack_size = 0; in ipa_reverse_postorder()
306 stack[stack_size].ref = 0; in ipa_reverse_postorder()
308 while (stack_size >= 0) in ipa_reverse_postorder()
327 stack[stack_size].ref, in ipa_reverse_postorder()
329 stack[stack_size].ref++) in ipa_reverse_postorder()
[all …]
H A Dipa-utils.cc62 int stack_size; member
93 env->stack[(env->stack_size)++] = v; in searchc()
132 x = env->stack[--(env->stack_size)]; in searchc()
170 env.stack_size = 0; in ipa_reduced_postorder()
279 int stack_size = 0; in ipa_reverse_postorder() local
303 stack_size = 0; in ipa_reverse_postorder()
306 stack[stack_size].ref = 0; in ipa_reverse_postorder()
308 while (stack_size >= 0) in ipa_reverse_postorder()
327 stack[stack_size].ref, in ipa_reverse_postorder()
329 stack[stack_size].ref++) in ipa_reverse_postorder()
[all …]
/netbsd/external/gpl3/gcc.old/dist/gcc/
H A Dipa-utils.c62 int stack_size; member
93 env->stack[(env->stack_size)++] = v; in searchc()
132 x = env->stack[--(env->stack_size)]; in searchc()
170 env.stack_size = 0; in ipa_reduced_postorder()
279 int stack_size = 0; in ipa_reverse_postorder() local
303 stack_size = 0; in ipa_reverse_postorder()
306 stack[stack_size].ref = 0; in ipa_reverse_postorder()
308 while (stack_size >= 0) in ipa_reverse_postorder()
327 stack[stack_size].ref, in ipa_reverse_postorder()
329 stack[stack_size].ref++) in ipa_reverse_postorder()
[all …]
/netbsd/external/mit/libuv/dist/src/win/
H A Dthread.c128 size_t stack_size; in uv_thread_create_ex() local
131 stack_size = in uv_thread_create_ex()
132 params->flags & UV_THREAD_HAS_STACK_SIZE ? params->stack_size : 0; in uv_thread_create_ex()
134 if (stack_size != 0) { in uv_thread_create_ex()
138 stack_size = (stack_size + pagesize - 1) &~ (pagesize - 1); in uv_thread_create_ex()
140 if ((unsigned)stack_size != stack_size) in uv_thread_create_ex()
154 (unsigned)stack_size, in uv_thread_create_ex()
/netbsd/sys/external/bsd/compiler_rt/dist/lib/asan/tests/
H A Dasan_fake_stack_test.cc48 uptr stack_size = 1UL << stack_size_log; in TEST() local
53 uptr num_flags = stack_size / frame_size; in TEST()
95 const uptr stack_size = 1 << stack_size_log; in TEST() local
100 EXPECT_EQ(base + 0*stack_size + 64 * 7, fs->GetFrame(stack_size_log, 0, 7U)); in TEST()
101 EXPECT_EQ(base + 1*stack_size + 128 * 3, fs->GetFrame(stack_size_log, 1, 3U)); in TEST()
102 EXPECT_EQ(base + 2*stack_size + 256 * 5, fs->GetFrame(stack_size_log, 2, 5U)); in TEST()
/netbsd/lib/libpthread/
H A Dpthread_makelwp_netbsd.c49 void *stack_base, size_t stack_size, in pthread__makelwp() argument
62 uc.uc_stack.ss_size = stack_size; in pthread__makelwp()
66 _lwp_makecontext(&uc, start_routine, arg, priv, stack_base, stack_size); in pthread__makelwp()
/netbsd/usr.bin/sort/
H A Dradix_sort.c77 int stack_size = 512; in radix_sort() local
88 s = emalloc(stack_size * sizeof *s); in radix_sort()
130 if (sp + nc > s + stack_size) { in radix_sort()
131 stack_size *= 2; in radix_sort()
132 sp1 = erealloc(s, stack_size * sizeof *s); in radix_sort()
/netbsd/external/mit/libuv/dist/src/unix/
H A Dthread.c244 size_t stack_size; in uv_thread_create_ex() local
253 stack_size = in uv_thread_create_ex()
254 params->flags & UV_THREAD_HAS_STACK_SIZE ? params->stack_size : 0; in uv_thread_create_ex()
257 if (stack_size == 0) { in uv_thread_create_ex()
258 stack_size = uv__thread_stack_size(); in uv_thread_create_ex()
262 stack_size = (stack_size + pagesize - 1) &~ (pagesize - 1); in uv_thread_create_ex()
264 if (stack_size < min_stack_size) in uv_thread_create_ex()
265 stack_size = min_stack_size; in uv_thread_create_ex()
268 if (stack_size > 0) { in uv_thread_create_ex()
274 if (pthread_attr_setstacksize(attr, stack_size)) in uv_thread_create_ex()
/netbsd/lib/libc/arch/powerpc64/gen/
H A D_lwp.c52 void *private, caddr_t stack_base, size_t stack_size) in _lwp_makecontext() argument
60 u->uc_stack.ss_size = stack_size; in _lwp_makecontext()
62 sp = (void *)(stack_base + stack_size); in _lwp_makecontext()
/netbsd/lib/libc/arch/i386/gen/
H A D_lwp.c46 void *arg, void *private, caddr_t stack_base, size_t stack_size) in _lwp_makecontext() argument
54 u->uc_stack.ss_size = stack_size; in _lwp_makecontext()
61 sp = (void **) (((uintptr_t)(stack_base + stack_size - 4) & ~0xf) + 4); in _lwp_makecontext()
/netbsd/lib/libc/arch/m68k/gen/
H A D_lwp.c46 void *arg, void *tcb, caddr_t stack_base, size_t stack_size) in _lwp_makecontext() argument
54 u->uc_stack.ss_size = stack_size; in _lwp_makecontext()
58 sp = (void **)(void *)(stack_base + stack_size); in _lwp_makecontext()
/netbsd/lib/libc/arch/alpha/gen/
H A D_lwp.c45 void *arg, void *private, caddr_t stack_base, size_t stack_size) in _lwp_makecontext() argument
55 u->uc_stack.ss_size = stack_size; in _lwp_makecontext()
61 gr[_REG_SP] = ((unsigned long) (stack_base + stack_size)) & ~0xfUL; in _lwp_makecontext()
/netbsd/lib/libc/arch/ia64/gen/
H A D_lwp.c45 void *arg, void *private, caddr_t stack_base, size_t stack_size) in _lwp_makecontext() argument
56 u->uc_stack.ss_size = stack_size; in _lwp_makecontext()
62 gr[_REG_SP] = ((unsigned long) (stack_base + stack_size)) & ~0x7; in _lwp_makecontext()
/netbsd/lib/libc/arch/x86_64/gen/
H A D_lwp.c46 void *arg, void *private, caddr_t stack_base, size_t stack_size) in _lwp_makecontext() argument
55 u->uc_stack.ss_size = stack_size; in _lwp_makecontext()
60 sp = (void **) (((uintptr_t)(stack_base + stack_size) & ~15)); in _lwp_makecontext()
/netbsd/external/gpl2/gettext/dist/gettext-tools/src/
H A Dx-glade.c213 static size_t stack_size; variable
219 if (size > stack_size) in ensure_stack_size()
221 stack_size = 2 * stack_size; in ensure_stack_size()
222 if (stack_size < size) in ensure_stack_size()
223 stack_size = size; in ensure_stack_size()
226 xrealloc (stack, stack_size * sizeof (struct element_state)); in ensure_stack_size()

1234567