| /third_party/ltp/testcases/kernel/syscalls/mmap/ |
| H A D | mmap18.c | 86 static void *allocate_stack(size_t stack_size, size_t mapped_size) in allocate_stack() argument 90 long reserved_size = 256 * page_size + stack_size; in allocate_stack() 101 stack_bottom = start + reserved_size - stack_size; in allocate_stack() 106 mapped_size/page_size, stack_size/page_size); in allocate_stack() 151 static void grow_stack_success(size_t stack_size, size_t mapped_size) in grow_stack_success() argument 159 stack = allocate_stack(stack_size, mapped_size); in grow_stack_success() 160 grow_stack(stack, stack_size); in grow_stack_success() 175 static void grow_stack_fail(size_t stack_size, size_t mapped_size) in grow_stack_fail() argument 184 stack = allocate_stack(stack_size, mapped_size); in grow_stack_fail() 191 grow_stack(stack, stack_size); in grow_stack_fail() 204 size_t stack_size = 8 * pthread_stack; run_test() local [all...] |
| /third_party/ltp/lib/ |
| H A D | cloner.c | 61 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() 66 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_() 79 stack += stack_size; in ltp_clone_() 89 size_t stack_size, void *stack) in ltp_clone() 91 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone() 95 size_t stack_size, void *stack, ...) in ltp_clone7() 107 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7() 134 size_t stack_size) in ltp_clone_alloc() 140 stack = ltp_alloc_stack(stack_size); in ltp_clone_alloc() 144 ret = ltp_clone(clone_flags, fn, arg, stack_size, stac in ltp_clone_alloc() 60 ltp_clone_(unsigned long flags, int (*fn)(void *arg), void *arg, size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) ltp_clone_() argument 88 ltp_clone(unsigned long flags, int (*fn)(void *arg), void *arg, size_t stack_size, void *stack) ltp_clone() argument 94 ltp_clone7(unsigned long flags, int (*fn)(void *arg), void *arg, size_t stack_size, void *stack, ...) ltp_clone7() argument 133 ltp_clone_alloc(unsigned long clone_flags, int (*fn) (void *arg), void *arg, size_t stack_size) ltp_clone_alloc() argument 162 size_t stack_size = getpagesize() * 6; ltp_clone_quick() local [all...] |
| /third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
| H A D | StackContainerTests.cpp | 34 const int stack_size = 3; in TEST() local 35 StackVector<int, stack_size> vect; in TEST() 38 // The initial |stack_size| elements should appear in the stack buffer. in TEST() 39 EXPECT_EQ(static_cast<size_t>(stack_size), vect.container().capacity()); in TEST() 40 for (int i = 0; i < stack_size; i++) { in TEST() 47 for (int i = 0; i < stack_size; i++) { in TEST() 48 vect.container().push_back(i + stack_size); in TEST() 54 for (int i = 0; i < stack_size * 2; i++) in TEST() 61 vect.container().resize(stack_size); in TEST() 62 vect.container().reserve(stack_size * in TEST() [all...] |
| /third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/ |
| H A D | 1-1.c | 34 size_t stack_size; in main() local 46 /* Get the default stack_addr and stack_size value */ in main() 47 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 52 printf("stack_addr = %p, stack_size = %zu\n", stack_addr, stack_size); in main() 54 stack_size = PTHREAD_STACK_MIN; in main() 57 stack_size) != 0) { in main() 62 printf("stack_addr = %p, stack_size = %zu\n", stack_addr, stack_size); in main() 64 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() [all...] |
| /third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/ |
| H A D | 7-1.c | 33 static size_t stack_size; variable 47 /* Get the default stack_addr and stack_size value */ in main() 48 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 53 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 55 stack_size = PTHREAD_STACK_MIN; in main() 58 stack_size) != 0) { in main() 65 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 66 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() [all...] |
| H A D | 6-1.c | 32 static size_t stack_size; variable 46 /* Get the default stack_addr and stack_size value */ in main() 47 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 52 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 54 stack_size = STACKSIZE; in main() 57 stack_size) != 0) { in main() 63 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 64 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() [all...] |
| H A D | 4-1.c | 35 static size_t stack_size; variable 68 /* Get the default stack_addr and stack_size value */ in main() 69 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 74 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 76 stack_size = PTHREAD_STACK_MIN; in main() 79 stack_size) != 0) { in main() 84 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 86 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() [all...] |
| H A D | 2-1.c | 36 static size_t stack_size; variable 53 if (ssize != stack_size || saddr != stack_addr) { in thread_func() 77 /* Get the default stack_addr and stack_size value */ in main() 78 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 91 stack_size = PTHREAD_STACK_MIN * 4; in main() 94 stack_size)) != 0) { in main() 99 if ((rc = pthread_attr_setstack(&attr, stack_addr, stack_size)) != 0) { in main()
|
| H A D | 1-1.c | 33 static size_t stack_size; variable 56 /* Get the default stack_addr and stack_size value */ in main() 57 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main() 62 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 64 stack_size = PTHREAD_STACK_MIN; in main() 67 stack_size) != 0) { in main() 72 /* printf("stack_addr = %p, stack_size = %u\n", stack_addr, stack_size); */ in main() 74 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main() [all...] |
| /third_party/libuv/test/ |
| H A D | test-thread.c | 220 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack() 229 size_t stack_size; in thread_check_stack() 235 ASSERT_OK(pthread_attr_getstacksize(&attr, &stack_size)); in thread_check_stack() 236 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack() 239 ASSERT_GE(stack_size, expected); in thread_check_stack() 257 options.stack_size = 1024 * 1024; in TEST_IMPL() 262 options.stack_size = 8 * 1024 * 1024; /* larger than most default os sizes */ in TEST_IMPL() 267 options.stack_size = 0; in TEST_IMPL() 272 options.stack_size = 42; in TEST_IMPL() 278 options.stack_size in TEST_IMPL() [all...] |
| /third_party/pcre2/pcre2/src/sljit/ |
| H A D | sljitNativeX86_32.c | 629 sljit_sw stack_size = 0; in call_get_stack_size() local 637 stack_size += SSIZE_OF(f64); in call_get_stack_size() 640 stack_size += SSIZE_OF(f32); in call_get_stack_size() 644 stack_size += SSIZE_OF(sw); in call_get_stack_size() 654 if (stack_size <= 4 * SSIZE_OF(sw)) in call_get_stack_size() 657 return ((stack_size - (4 * SSIZE_OF(sw)) + 0xf) & ~0xf); in call_get_stack_size() 661 sljit_s32 arg_types, sljit_sw stack_size, sljit_s32 word_arg_count, sljit_s32 keep_tmp1) in call_with_args() 675 if (stack_size > 0) in call_with_args() 676 BINARY_IMM32(SUB, stack_size, SLJIT_SP, 0); in call_with_args() 699 EMIT_MOV(compiler, SLJIT_R0, 0, SLJIT_MEM1(SLJIT_SP), 2 * SSIZE_OF(sw) + stack_size); in call_with_args() 660 call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_sw stack_size, sljit_s32 word_arg_count, sljit_s32 keep_tmp1) call_with_args() argument 711 post_call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_s32 stack_size) post_call_with_args() argument 741 sljit_sw stack_size, prev_stack_size, min_size, offset; tail_call_with_args() local 1000 sljit_sw stack_size = 0; sljit_emit_call() local 1050 sljit_sw stack_size = 0; sljit_emit_icall() local [all...] |
| /third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/ |
| H A D | 2-1.c | 35 static size_t stack_size; variable 53 if (ssize < stack_size) { in thread_func() 55 "size (%zu < %zu)\n", ssize, stack_size); in thread_func() 83 stack_size = 4 * PTHREAD_STACK_MIN; in main() 86 stack_size)) != 0) { in main() 91 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
|
| H A D | 4-1.c | 35 size_t stack_size; in main() local 45 stack_size = STACKSIZE; in main() 47 if (posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size) != 0) { in main() 53 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
|
| H A D | 1-1.c | 42 size_t stack_size = PTHREAD_STACK_MIN; in main() local 54 /* printf("stack_size = %lu\n", stack_size); */ in main() 56 rc = posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size); in main() 64 rc = pthread_attr_setstacksize(&attr, stack_size); in main() 77 /* printf("stack_size = %lu\n", ssize); */ in main()
|
| /third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/ |
| H A D | 1-1.c | 33 size_t stack_size; in main() local 45 /* Get the default stack_addr and stack_size value */ in main() 46 rc = pthread_attr_getstacksize(&attr, &stack_size); in main() 51 /* printf("stack_size = %lu\n", stack_size); */ in main() 53 stack_size = PTHREAD_STACK_MIN; in main() 55 if (posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size) != 0) { in main() 60 /* printf("stack_size = %lu\n", stack_size); */ in main() 62 rc = pthread_attr_setstacksize(&attr, stack_size); in main() [all...] |
| /third_party/musl/libc-test/src/functionalext/thread/ |
| H A D | pthread_stack_size.c | 26 size_t stack_size = 0; in pthread_stack_size_0100() local 28 pthread_attr_getstacksize(&attr, &stack_size); in pthread_stack_size_0100() 30 TEST(stack_size == TARGET_STACK_SIZE); in pthread_stack_size_0100() 32 TEST(stack_size == DEFAULT_STACK_SIZE); in pthread_stack_size_0100()
|
| /third_party/rust/crates/rustix/src/backend/linux_raw/runtime/ |
| H A D | tls.rs | 17 let mut stack_size = 0; variables 28 PT_GNU_STACK => stack_size = phdr.p_memsz, 38 stack_size, 56 pub stack_size: usize,
|
| /third_party/libuv/src/win/ |
| H A D | thread.c | 128 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()
|
| /third_party/node/deps/uv/src/win/ |
| H A D | thread.c | 128 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()
|
| /third_party/mesa3d/src/panfrost/lib/ |
| H A D | pan_scratch.c | 67 panfrost_get_stack_shift(unsigned stack_size) in panfrost_get_stack_shift() argument 69 if (stack_size) in panfrost_get_stack_shift() 70 return util_logbase2_ceil(DIV_ROUND_UP(stack_size, 16)); in panfrost_get_stack_shift()
|
| /third_party/libuv/src/unix/ |
| H A D | thread.c | 137 size_t stack_size; in uv_thread_create_ex() local 146 stack_size = in uv_thread_create_ex() 147 params->flags & UV_THREAD_HAS_STACK_SIZE ? params->stack_size : 0; in uv_thread_create_ex() 150 if (stack_size == 0) { in uv_thread_create_ex() 151 stack_size = uv__thread_stack_size(); in uv_thread_create_ex() 155 stack_size = (stack_size + pagesize - 1) &~ (pagesize - 1); in uv_thread_create_ex() 157 if (stack_size < min_stack_size) in uv_thread_create_ex() 158 stack_size = min_stack_size; in uv_thread_create_ex() 161 if (stack_size > in uv_thread_create_ex() [all...] |
| /third_party/node/deps/uv/src/unix/ |
| H A D | thread.c | 244 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 > in uv_thread_create_ex() [all...] |
| /third_party/rust/crates/syn/tests/common/ |
| H A D | mod.rs | 20 let stack_size = match env::var("RUST_MIN_STACK") { in rayon_init() 25 .stack_size(stack_size) in rayon_init()
|
| /third_party/python/Lib/test/ |
| H A D | test_thread.py | 74 self.assertEqual(thread.stack_size(), 0, "initial stack size is not 0") 76 thread.stack_size(0) 77 self.assertEqual(thread.stack_size(), 0, "stack_size not reset to default") 82 thread.stack_size(4096) 85 "stack_size(4096)") 90 fail_msg = "stack_size(%d) failed - should succeed" 92 thread.stack_size(tss) 93 self.assertEqual(thread.stack_size(), tss, fail_msg % tss) 94 verbose_print("successfully set stack_size( [all...] |
| /third_party/ltp/testcases/cve/ |
| H A D | stack_clash.c | 138 unsigned long read_stack_addr_from_proc(unsigned long *stack_size) in read_stack_addr_from_proc() argument 160 *stack_size = end - start; in read_stack_addr_from_proc() 214 unsigned long stack_addr, stack_size; in do_child() local 226 stack_addr = read_stack_addr_from_proc(&stack_size); in do_child() 242 stack_addr, stack_size, map, MAPPED_LEN); in do_child()
|