Home
last modified time | relevance | path

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

123456

/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap18.c86 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()
[all …]
/third_party/ltp/lib/
Dcloner.c66 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument
71 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_()
84 stack += stack_size; in ltp_clone_()
94 size_t stack_size, void *stack) in ltp_clone() argument
96 return ltp_clone_(flags, fn, arg, stack_size, stack, NULL, NULL, NULL); in ltp_clone()
100 size_t stack_size, void *stack, ...) in ltp_clone7() argument
113 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
144 size_t stack_size) in ltp_clone_alloc() argument
150 stack = ltp_alloc_stack(stack_size); in ltp_clone_alloc()
154 ret = ltp_clone(clone_flags, fn, arg, stack_size, stack); in ltp_clone_alloc()
[all …]
/third_party/libuv/test/
Dtest-thread.c163 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
172 size_t stack_size; in thread_check_stack()
178 ASSERT(0 == pthread_attr_getstacksize(&attr, &stack_size)); in thread_check_stack()
179 expected = arg == NULL ? 0 : ((uv_thread_options_t*)arg)->stack_size; in thread_check_stack()
182 ASSERT(stack_size >= expected); in thread_check_stack()
200 options.stack_size = 1024 * 1024; in TEST_IMPL()
205 options.stack_size = 8 * 1024 * 1024; /* larger than most default os sizes */ in TEST_IMPL()
210 options.stack_size = 0; in TEST_IMPL()
215 options.stack_size = 42; in TEST_IMPL()
221 options.stack_size = PTHREAD_STACK_MIN - 42; /* unaligned size */ in TEST_IMPL()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DStackContainerTests.cpp34 const int stack_size = 3; in TEST() local
35 StackVector<int, stack_size> vect; 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 * 2); in TEST()
68 std::vector<int, StackAllocator<int, stack_size>> other(vect.container()); in TEST()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstack/
D7-1.c33 static size_t stack_size; variable
48 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
55 stack_size = PTHREAD_STACK_MIN; in main()
58 stack_size) != 0) { in main()
66 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
73 stack_size = PTHREAD_STACK_MIN + OFFSET; in main()
75 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
D4-1.c35 static size_t stack_size; variable
69 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
76 stack_size = PTHREAD_STACK_MIN; in main()
79 stack_size) != 0) { in main()
86 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
99 if (ssize != stack_size || saddr != stack_addr) { in main()
D6-1.c32 static size_t stack_size; variable
47 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
54 stack_size = STACKSIZE; in main()
57 stack_size) != 0) { in main()
64 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
D2-1.c36 static size_t stack_size; variable
53 if (ssize != stack_size || saddr != stack_addr) { in thread_func()
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()
D1-1.c33 static size_t stack_size; variable
57 rc = pthread_attr_getstack(&attr, &stack_addr, &stack_size); in main()
64 stack_size = PTHREAD_STACK_MIN; in main()
67 stack_size) != 0) { in main()
74 rc = pthread_attr_setstack(&attr, stack_addr, stack_size); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstack/
D1-1.c34 size_t stack_size; in main() local
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()
/third_party/pcre2/pcre2/src/sljit/
DsljitNativeX86_32.c629 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() argument
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()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setstacksize/
D2-1.c35 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()
D4-1.c35 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()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getstacksize/
D1-1.c33 size_t stack_size; in main() local
46 rc = pthread_attr_getstacksize(&attr, &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()
62 rc = pthread_attr_setstacksize(&attr, stack_size); in main()
/third_party/musl/libc-test/src/functionalext/thread/
Dpthread_stack_size.c26 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/
Dtls.rs17 let mut stack_size = 0; in startup_tls_info() localVariable
28 PT_GNU_STACK => stack_size = phdr.p_memsz, in startup_tls_info()
38 stack_size, in startup_tls_info()
56 pub stack_size: usize, field
/third_party/node/deps/uv/src/win/
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()
/third_party/libuv/src/win/
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()
/third_party/mesa3d/src/panfrost/lib/
Dpan_scratch.c67 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/rust/crates/syn/tests/common/
Dmod.rs20 let stack_size = match env::var("RUST_MIN_STACK") { in rayon_init() localVariable
25 .stack_size(stack_size) in rayon_init()
/third_party/python/Lib/test/
Dtest_thread.py72 self.assertEqual(thread.stack_size(), 0, "initial stack size is not 0")
74 thread.stack_size(0)
75 self.assertEqual(thread.stack_size(), 0, "stack_size not reset to default")
80 thread.stack_size(4096)
90 thread.stack_size(tss)
91 self.assertEqual(thread.stack_size(), tss, fail_msg % tss)
106 thread.stack_size(0)
/third_party/ltp/testcases/cve/
Dstack_clash.c81 unsigned long read_stack_addr_from_proc(unsigned long *stack_size) in read_stack_addr_from_proc() argument
103 *stack_size = end - start; in read_stack_addr_from_proc()
135 unsigned long stack_addr, stack_size; in do_child() local
147 stack_addr = read_stack_addr_from_proc(&stack_size); in do_child()
163 stack_addr, stack_size, map, MAPPED_LEN); in do_child()
/third_party/libuv/src/unix/
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()
/third_party/node/deps/uv/src/unix/
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()
/third_party/mesa3d/src/intel/compiler/
Dbrw_nir_lower_rt_intrinsics.c111 int32_t stack_size = nir_intrinsic_stack_size(intrin); in lower_rt_intrinsics_impl() local
112 if (stack_size > 0) { in lower_rt_intrinsics_impl()
114 nir_iadd_imm(b, stack_base_offset, stack_size); in lower_rt_intrinsics_impl()
127 int32_t stack_size = nir_intrinsic_stack_size(intrin); in lower_rt_intrinsics_impl() local
128 if (stack_size > 0) { in lower_rt_intrinsics_impl()
130 nir_iadd_imm(b, stack_base_offset, -stack_size); in lower_rt_intrinsics_impl()

123456