/netbsd-src/external/bsd/pcc/dist/pcc/arch/sparc64/ |
H A D | code.c | 137 moveargs(NODE *p, int *regp, int *stacksize) in moveargs() argument 142 p->n_left = moveargs(p->n_left, regp, stacksize); in moveargs() 153 *stacksize = ALIGN(*stacksize, (tlen(r) - 1)); in moveargs() 154 r->n_rval = *stacksize; in moveargs() 155 *stacksize += tlen(r); in moveargs() 193 int reg = 0, stacksize = 0; in funcode() local 197 p->n_right = moveargs(p->n_right, ®, &stacksize); in funcode() 209 if (stacksize != 0) { in funcode() 210 stacksize = V9STEP(stacksize); /* 16-bit alignment. */ in funcode() 215 r = block(MINUS, r, bcon(stacksize), INT, 0, 0); in funcode() [all …]
|
/netbsd-src/lib/libpuffs/ |
H A D | callcontext.c | 190 size_t stacksize = 1<<pu->pu_cc_stackshift; in slowccalloc() local 196 sp = mmap(NULL, stacksize, PROT_READ|PROT_WRITE, in slowccalloc() 207 mprotect((uint8_t *)sp + stacksize - psize, (size_t)psize, PROT_NONE); in slowccalloc() 212 munmap(pcc, stacksize); in slowccalloc() 216 munmap(pcc, stacksize); in slowccalloc() 228 size_t stacksize = 1<<pu->pu_cc_stackshift; in puffs__cc_create() local 264 st->ss_size = stacksize - psize; in puffs__cc_create() 296 size_t stacksize = 1<<pu->pu_cc_stackshift; in cc_free() local 300 munmap(pcc, stacksize); in cc_free() 337 size_t stacksize = 1<<pu->pu_cc_stackshift; in puffs_cc_getcc() local [all …]
|
/netbsd-src/external/gpl3/binutils/dist/ld/emultempl/ |
H A D | nto.em | 37 unsigned char stacksize[4]; 145 if (nto_lazy_stack && !link_info.stacksize) 152 if (link_info.stacksize <= 0 && (link_info.execstack == link_info.noexecstack)) 164 if (link_info.stacksize > 0) 165 bfd_h_put_32 (note_sec->owner, link_info.stacksize, &n_note->stacksize); 167 bfd_h_put_32 (note_sec->owner, 0, &n_note->stacksize); 169 if (nto_lazy_stack || (!is_update && link_info.stacksize <= 0)) 171 else if (link_info.stacksize > 0) 172 bfd_h_put_32 (note_sec->owner, link_info.stacksize, &n_note->stackalloc); 217 link_info.stacksize = strtoul (optarg, &end, 0); [all …]
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_linux_libcdep.cc | 118 // Get stacksize from rlimit, but clip it so that it does not overlap in GetThreadStackTopAndBottom() 120 uptr stacksize = rl.rlim_cur; in GetThreadStackTopAndBottom() 121 if (stacksize > segment.end - prev_end) stacksize = segment.end - prev_end; in GetThreadStackTopAndBottom() local 125 if (stacksize > kMaxThreadStackSize) in GetThreadStackTopAndBottom() 126 stacksize = kMaxThreadStackSize; in GetThreadStackTopAndBottom() 128 *stack_bottom = segment.end - stacksize; in GetThreadStackTopAndBottom() 131 uptr stacksize = 0; in GetThreadStackTopAndBottom() 136 stacksize = ss.ss_size; in GetThreadStackTopAndBottom() 137 stackaddr = (char *)ss.ss_sp - stacksize; in GetThreadStackTopAndBottom() 132 uptr stacksize = 0; GetThreadStackTopAndBottom() local [all...] |
H A D | sanitizer_posix_libcdep.cc | 420 uptr stacksize = 0; in AdjustStackSize() local 421 my_pthread_attr_getstack(attr, (void**)&stackaddr, &stacksize); in AdjustStackSize() 424 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in AdjustStackSize() 427 if (stacksize < minstacksize) { in AdjustStackSize() 429 if (stacksize != 0) { in AdjustStackSize() 430 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in AdjustStackSize() 436 "%zu < %zu\n", stacksize, minstacksize); in AdjustStackSize()
|
/netbsd-src/tests/lib/libpthread/ |
H A D | t_stack.c | 74 size_t stacksize; in getdefaultstacksize() local 81 RZ(pthread_attr_getstacksize(&attr, &stacksize)); in getdefaultstacksize() 88 ATF_CHECK_EQ_MSG(stacksize, pthread__stacksize, in getdefaultstacksize() 90 stacksize, pthread__stacksize); in getdefaultstacksize() 92 return stacksize; in getdefaultstacksize() 167 init(size_t stacksize) in init() argument 170 C->size = stacksize; in init()
|
H A D | t_join.c | 152 size_t stacksize, guardsize; in threadfunc2() local 157 ATF_REQUIRE(pthread_attr_getstacksize(&attr, &stacksize) == 0); in threadfunc2() 158 ATF_REQUIRE(stacksize == STACKSIZE * (j + 1)); in threadfunc2()
|
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cris/c/ |
H A D | clone4.c | 32 int stacksize = 16384; in main() local 36 char *stack = malloc (stacksize); in main() 40 pid = clone (process, (char *) stack + stacksize - 64, in main()
|
/netbsd-src/external/mpl/bind/dist/lib/isc/ |
H A D | thread.c | 130 size_t stacksize; 131 ret = pthread_attr_getstacksize(&attr, &stacksize); 134 if (stacksize < THREAD_MINSTACKSIZE) { 52 size_t stacksize; isc_thread_create() local
|
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/pthreads/ |
H A D | thread.c | 60 size_t stacksize; in isc_thread_create() local 69 ret = pthread_attr_getstacksize(&attr, &stacksize); in isc_thread_create() 74 if (stacksize < THREAD_MINSTACKSIZE) { in isc_thread_create()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_posix_libcdep.cpp | 399 uptr stacksize = 0; in AdjustStackSize() local 400 my_pthread_attr_getstack(attr, (void**)&stackaddr, &stacksize); in AdjustStackSize() 403 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in AdjustStackSize() 406 if (stacksize < minstacksize) { in AdjustStackSize() 408 if (stacksize != 0) { in AdjustStackSize() 409 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in AdjustStackSize() 415 "%zu < %zu\n", stacksize, minstacksize); in AdjustStackSize()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_posix_libcdep.cc | 416 uptr stacksize = 0; in AdjustStackSize() local 417 my_pthread_attr_getstack(attr, (void**)&stackaddr, &stacksize); in AdjustStackSize() 420 bool stack_set = (stackaddr != 0) && (stackaddr + stacksize != 0); in AdjustStackSize() 423 if (stacksize < minstacksize) { in AdjustStackSize() 425 if (stacksize != 0) { in AdjustStackSize() 426 VPrintf(1, "Sanitizer: increasing stacksize %zu->%zu\n", stacksize, in AdjustStackSize() 432 "%zu < %zu\n", stacksize, minstacksize); in AdjustStackSize()
|
/netbsd-src/lib/libpthread/ |
H A D | pthread.c | 329 size_t stacksize, guardsize; in pthread__getstack() local 333 pthread_attr_getstack(attr, &stackbase, &stacksize); in pthread__getstack() 340 stacksize = 0; in pthread__getstack() 343 if (stacksize == 0) in pthread__getstack() 344 stacksize = pthread__stacksize; in pthread__getstack() 348 newthread->pt_stack.ss_size == stacksize && in pthread__getstack() 366 stacksize = ((stacksize - 1) | (pthread__pagesize - 1)) + 1; in pthread__getstack() 368 stackbase = mmap(NULL, stacksize + guardsize, in pthread__getstack() 377 redzone = (char *)stackbase + stacksize; in pthread__getstack() 385 munmap(stackbase, stacksize + guardsize); in pthread__getstack() [all …]
|
/netbsd-src/external/bsd/unbound/dist/util/ |
H A D | locks.h | 159 size_t stacksize; \ 161 LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \ 162 if (stacksize < stackrequired) { \ 165 LOCKRET(pthread_attr_getstacksize(&attr, &stacksize)); \ 166 verbose(VERB_ALGO, "Thread stack size set to %u", (unsigned)stacksize); \
|
/netbsd-src/sys/arch/mips/mips/ |
H A D | db_trace.c | 232 int stacksize; in db_stack_trace_print() 254 stacksize = 0; in db_stack_trace_print() 264 stacksize = -(short)i.IType.imm; in db_stack_trace_print() 272 name, pc - func, (void *)(intptr_t)ra, stacksize); in db_stack_trace_print() 278 sp += stacksize; in db_stack_trace_print()
|
/netbsd-src/external/gpl3/gcc.old/dist/libgomp/ |
H A D | env.c | 1129 handle_omp_display_env (unsigned long stacksize, int wait_policy) in handle_omp_display_env() argument 1259 fprintf (stderr, " OMP_STACKSIZE = '%lu'\n", stacksize); in handle_omp_display_env() 1283 fprintf (stderr, " GOMP_STACKSIZE = '%lu'\n", stacksize); in handle_omp_display_env() 1300 unsigned long thread_limit_var, stacksize = GOMP_DEFAULT_STACKSIZE; in initialize_env() local 1393 if (parse_stacksize ("OMP_STACKSIZE", &stacksize) in initialize_env() 1394 || parse_stacksize ("GOMP_STACKSIZE", &stacksize) in initialize_env() 1399 err = pthread_attr_setstacksize (&gomp_thread_attr, stacksize); in initialize_env() 1404 if (stacksize < PTHREAD_STACK_MIN) in initialize_env() 1417 handle_omp_display_env (stacksize, wait_policy); in initialize_env()
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/ |
H A D | stacksize_example.txt | 1 The following is a domonstration of the stacksize.d script. 8 # ./stacksize.d
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Examples/ |
H A D | stacksize_example.txt | 1 The following is a domonstration of the stacksize.d script. 8 # ./stacksize.d
|
/netbsd-src/sys/arch/x86/x86/ |
H A D | vm_machdep.c | 131 cpu_lwp_fork(struct lwp *l1, struct lwp *l2, void *stack, size_t stacksize, in cpu_lwp_fork() argument 200 tf->tf_rsp = (uint64_t)stack + stacksize; in cpu_lwp_fork() 202 tf->tf_esp = (uint32_t)stack + stacksize; in cpu_lwp_fork()
|
/netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
H A D | elf-properties.c | 754 if (info->stacksize > 0) in _bfd_elf_link_setup_gnu_properties() 756 bfd_vma stacksize = info->stacksize; in _bfd_elf_link_setup_gnu_properties() local 763 p->u.number = stacksize; in _bfd_elf_link_setup_gnu_properties() 766 else if (stacksize > p->u.number) in _bfd_elf_link_setup_gnu_properties() 767 p->u.number = stacksize; in _bfd_elf_link_setup_gnu_properties()
|
/netbsd-src/external/gpl3/binutils/dist/bfd/ |
H A D | elf-properties.c | 754 if (info->stacksize > 0) in _bfd_elf_link_setup_gnu_properties() 756 bfd_vma stacksize = info->stacksize; in _bfd_elf_link_setup_gnu_properties() local 763 p->u.number = stacksize; in _bfd_elf_link_setup_gnu_properties() 766 else if (stacksize > p->u.number) in _bfd_elf_link_setup_gnu_properties() 767 p->u.number = stacksize; in _bfd_elf_link_setup_gnu_properties()
|
/netbsd-src/sys/arch/m68k/m68k/ |
H A D | vm_machdep.c | 85 cpu_lwp_fork(struct lwp *l1, struct lwp *l2, void *stack, size_t stacksize, in cpu_lwp_fork() argument 118 tf->tf_regs[15] = (u_int)stack + stacksize; in cpu_lwp_fork()
|
/netbsd-src/sys/arch/ia64/ia64/ |
H A D | vm_machdep.c | 139 cpu_lwp_fork(struct lwp *l1, struct lwp *l2, void *stack, size_t stacksize, in cpu_lwp_fork() argument 197 l2->l_md.user_stack_size = stacksize; in cpu_lwp_fork()
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
H A D | sanitizer_linux_test.cc | 213 size_t stacksize; in thread_descriptor_size_test_func() local 214 pthread_attr_getstack(&attr, &stackaddr, &stacksize); in thread_descriptor_size_test_func() 215 return (void *)((uptr)stackaddr + stacksize - descr_addr); in thread_descriptor_size_test_func()
|
/netbsd-src/external/gpl3/gcc/dist/libgomp/ |
H A D | env.c | 105 static unsigned long stacksize = GOMP_DEFAULT_STACKSIZE; variable 1350 fprintf (stderr, " OMP_STACKSIZE = '%lu'\n", stacksize); in omp_display_env() 1408 fprintf (stderr, " GOMP_STACKSIZE = '%lu'\n", stacksize); in omp_display_env() 1576 if (parse_stacksize ("OMP_STACKSIZE", &stacksize) in initialize_env() 1577 || parse_stacksize ("GOMP_STACKSIZE", &stacksize) in initialize_env() 1582 err = pthread_attr_setstacksize (&gomp_thread_attr, stacksize); in initialize_env() 1587 if (stacksize < PTHREAD_STACK_MIN) in initialize_env()
|