Lines Matching refs:stack_size

169   size_t stack_size = 640 * 1024;  in TEST()  local
170 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST()
172 memset(stack, 0xff, stack_size); in TEST()
176 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack, stack_size)); in TEST()
185 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST()
198 size_t stack_size = 640 * 1024; in TEST() local
199 std::unique_ptr<char[]> stack(new (std::align_val_t(getpagesize())) char[stack_size]); in TEST()
200 memset(stack.get(), '\xff', stack_size); in TEST()
204 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack.get(), stack_size)); in TEST()
735 size_t stack_size = 640*1024; in TEST() local
736 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST()
740 pthread_attr_setstack(&a, stack, stack_size); in TEST()
745 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST()
839 size_t stack_size; in TEST() local
840 ASSERT_EQ(0, pthread_attr_getstacksize(&attributes, &stack_size)); in TEST()
841 ASSERT_EQ(default_stack_size, stack_size); in TEST()
846 ASSERT_EQ(0, pthread_attr_getstacksize(&attributes, &stack_size)); in TEST()
847 ASSERT_EQ(32*1024U, stack_size); in TEST()
852 ASSERT_EQ(0, pthread_attr_getstacksize(&attributes, &stack_size)); in TEST()
853 ASSERT_EQ(32*1024U + 1, stack_size); in TEST()
1809 size_t stack_size; in TEST() local
1810 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); in TEST()
1815 EXPECT_EQ(stack_size, stack_size2); in TEST()
1837 EXPECT_EQ(maps_stack_hi, reinterpret_cast<uint8_t*>(stack_base) + stack_size); in TEST()
1846 EXPECT_EQ(rl.rlim_cur, stack_size); in TEST()
1861 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); in TEST()
1864 EXPECT_EQ(stack_size, stack_size2); in TEST()
1865 ASSERT_EQ(1024U, stack_size); in TEST()
1875 ASSERT_EQ(0, pthread_attr_getstack(&attributes, &stack_base, &stack_size)); in TEST()
1878 EXPECT_EQ(stack_size, stack_size2); in TEST()
1879 ASSERT_EQ(6666U, stack_size); in TEST()
1900 size_t stack_size; in getstack_signal_handler() local
1901 ASSERT_EQ(0, pthread_attr_getstack(&attr, &stack_base, &stack_size)); in getstack_signal_handler()
1911 ASSERT_LE(getstack_signal_handler_arg.main_stack_size, stack_size); in getstack_signal_handler()
1961 size_t stack_size; in pthread_attr_getstack_18908062_helper() local
1962 pthread_attr_getstack(&attributes, &stack_base, &stack_size); in pthread_attr_getstack_18908062_helper()
1966 ASSERT_LT(untag_address(&local_variable), reinterpret_cast<char*>(stack_base) + stack_size); in pthread_attr_getstack_18908062_helper()