Home
last modified time | relevance | path

Searched refs:stack_size (Results 1 – 25 of 137) 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/pcre2/pcre2/src/sljit/
DsljitNativeX86_32.c521 sljit_s32 stack_size = 0; in c_fast_call_get_stack_size() local
529 stack_size += sizeof(sljit_f32); in c_fast_call_get_stack_size()
532 stack_size += sizeof(sljit_f64); in c_fast_call_get_stack_size()
537 stack_size += sizeof(sljit_sw); in c_fast_call_get_stack_size()
547 return stack_size; in c_fast_call_get_stack_size()
551 sljit_s32 arg_types, sljit_s32 stack_size, sljit_s32 word_arg_count, sljit_s32 swap_args) in c_fast_call_with_args() argument
556 if (stack_size == sizeof(sljit_sw) && word_arg_count == 3) { in c_fast_call_with_args()
562 else if (stack_size > 0) { in c_fast_call_with_args()
567 SLJIT_SP, 0, SLJIT_SP, 0, SLJIT_IMM, stack_size)); in c_fast_call_with_args()
569 stack_size = 0; in c_fast_call_with_args()
[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/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/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/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/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()
D1-1.c42 size_t stack_size = PTHREAD_STACK_MIN; in main() local
56 rc = posix_memalign(&saddr, sysconf(_SC_PAGE_SIZE), stack_size); in main()
64 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/boost/boost/context/
Dpooled_fixedsize_stack.hpp81 storage( std::size_t stack_size, std::size_t next_size, std::size_t max_size) : in storage() argument
83 stack_size_( stack_size), in storage()
84 storage_( stack_size, next_size, max_size) { in storage()
129 basic_pooled_fixedsize_stack( std::size_t stack_size = traits_type::default_size(), in basic_pooled_fixedsize_stack() argument
132 storage_( new storage( stack_size, next_size, max_size) ) { in basic_pooled_fixedsize_stack()
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dthread.cc41 size_t stack_size) { in CreateThread() argument
48 stack_size = std::max<size_t>(NextPageSizeMultiple(PTHREAD_STACK_MIN), in CreateThread()
49 NextPageSizeMultiple(stack_size)); in CreateThread()
51 if (pthread_attr_setstacksize(&thread_attributes, stack_size) != 0) { in CreateThread()
/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/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/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/boost/libs/asio/include/boost/asio/detail/
Dwin_thread.hpp70 win_thread(Function f, unsigned int stack_size = 0) in win_thread() argument
74 start_thread(new func<Function>(f), stack_size); in win_thread()
129 BOOST_ASIO_DECL void start_thread(func_base* arg, unsigned int stack_size);
/third_party/boost/boost/asio/detail/
Dwin_thread.hpp70 win_thread(Function f, unsigned int stack_size = 0) in win_thread() argument
74 start_thread(new func<Function>(f), stack_size); in win_thread()
129 BOOST_ASIO_DECL void start_thread(func_base* arg, unsigned int stack_size);

123456