Lines Matching refs:stack_size

694 static size_t FixStackSize(size_t stack_size) {  in FixStackSize()  argument
696 if (stack_size == 0) { in FixStackSize()
697 stack_size = Runtime::Current()->GetDefaultStackSize(); in FixStackSize()
702 stack_size += 1 * MB; in FixStackSize()
708 stack_size = std::max(2 * MB, stack_size); in FixStackSize()
712 if (stack_size < PTHREAD_STACK_MIN) { in FixStackSize()
713 stack_size = PTHREAD_STACK_MIN; in FixStackSize()
719 stack_size += Thread::kStackOverflowImplicitCheckSize + in FixStackSize()
725 stack_size += GetStackOverflowReservedBytes(kRuntimeISA); in FixStackSize()
729 stack_size = RoundUp(stack_size, gPageSize); in FixStackSize()
731 return stack_size; in FixStackSize()
851 void Thread::CreateNativeThread(JNIEnv* env, jobject java_peer, size_t stack_size, bool is_daemon) { in CreateNativeThread() argument
893 stack_size = FixStackSize(stack_size); in CreateNativeThread()
913 CHECK_PTHREAD_CALL(pthread_attr_setstacksize, (&attr, stack_size), stack_size); in CreateNativeThread()
947 PrettySize(stack_size).c_str(), strerror(pthread_create_result))); in CreateNativeThread()
1276 size_t* stack_size, in GetThreadStack() argument
1279 *stack_size = pthread_get_stacksize_np(thread); in GetThreadStack()
1286 *stack_base = reinterpret_cast<uint8_t*>(stack_addr) - *stack_size; in GetThreadStack()
1299 CHECK_PTHREAD_CALL(pthread_attr_getstack, (&attributes, stack_base, stack_size), __FUNCTION__); in GetThreadStack()
1314 size_t old_stack_size = *stack_size; in GetThreadStack()
1317 *stack_size = 8 * MB; in GetThreadStack()
1318 *stack_base = reinterpret_cast<uint8_t*>(*stack_base) + (old_stack_size - *stack_size); in GetThreadStack()
1321 << " to " << PrettySize(*stack_size) in GetThreadStack()
1338 tlsPtr_.stack_size = read_stack_size; in InitStackHwm()
1393 tlsPtr_.stack_size -= read_guard_size + GetStackOverflowProtectedSize(); in InitStackHwm()
2116 << PrettySize(thread->tlsPtr_.stack_size) << "\n"; in DumpState()
2805 if (static_cast<size_t>(raw_obj - tlsPtr_.stack_begin) < tlsPtr_.stack_size) { in IsJniTransitionReference()