Lines Matching refs:stack
170 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in TEST() local
171 ASSERT_NE(MAP_FAILED, stack); 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()
199 std::unique_ptr<char[]> stack(new (std::align_val_t(getpagesize())) char[stack_size]); in TEST() local
200 memset(stack.get(), '\xff', stack_size); in TEST()
204 ASSERT_EQ(0, pthread_attr_setstack(&attr, stack.get(), stack_size)); in TEST()
736 void* stack = mmap(nullptr, stack_size, PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST() local
740 pthread_attr_setstack(&a, stack, stack_size); in TEST()
745 ASSERT_EQ(0, munmap(stack, stack_size)); in TEST()