Home
last modified time | relevance | path

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

/art/runtime/
Dthread_pool.cc30 size_t stack_size) in ThreadPoolWorker() argument
34 stack_.reset(MemMap::MapAnonymous(name.c_str(), nullptr, stack_size, PROT_READ | PROT_WRITE, in ThreadPoolWorker()
205 size_t stack_size) in WorkStealingWorker() argument
206 : ThreadPoolWorker(thread_pool, name, stack_size), task_(nullptr) {} in WorkStealingWorker()
Dthread_pool.h63 ThreadPoolWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size);
175 WorkStealingWorker(ThreadPool* thread_pool, const std::string& name, size_t stack_size);
Dthread.cc307 static size_t FixStackSize(size_t stack_size) { in FixStackSize() argument
309 if (stack_size == 0) { in FixStackSize()
310 stack_size = Runtime::Current()->GetDefaultStackSize(); in FixStackSize()
315 stack_size += 1 * MB; in FixStackSize()
318 if (stack_size < PTHREAD_STACK_MIN) { in FixStackSize()
319 stack_size = PTHREAD_STACK_MIN; in FixStackSize()
326 stack_size += GetStackOverflowReservedBytes(kRuntimeISA); in FixStackSize()
330 stack_size += Thread::kStackOverflowImplicitCheckSize + in FixStackSize()
335 stack_size = RoundUp(stack_size, kPageSize); in FixStackSize()
337 return stack_size; in FixStackSize()
[all …]
Dutils.cc81 void GetThreadStack(pthread_t thread, void** stack_base, size_t* stack_size, size_t* guard_size) { in GetThreadStack() argument
83 *stack_size = pthread_get_stacksize_np(thread); in GetThreadStack()
90 *stack_base = reinterpret_cast<uint8_t*>(stack_addr) - *stack_size; in GetThreadStack()
103 CHECK_PTHREAD_CALL(pthread_attr_getstack, (&attributes, stack_base, stack_size), __FUNCTION__); in GetThreadStack()
118 size_t old_stack_size = *stack_size; in GetThreadStack()
121 *stack_size = 8 * MB; in GetThreadStack()
122 *stack_base = reinterpret_cast<uint8_t*>(*stack_base) + (old_stack_size - *stack_size); in GetThreadStack()
125 << " to " << PrettySize(*stack_size) in GetThreadStack()
Dthread.h150 static void CreateNativeThread(JNIEnv* env, jobject peer, size_t stack_size, bool daemon);
624 return tlsPtr_.stack_size - (tlsPtr_.stack_end - tlsPtr_.stack_begin); in GetStackSize()
1138 self(nullptr), opeer(nullptr), jpeer(nullptr), stack_begin(nullptr), stack_size(0), in tls_ptr_sized_values()
1189 size_t stack_size; member
Dentrypoints_order_test.cc98 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, stack_begin, stack_size, sizeof(void*)); in CheckThreadOffsets()
99 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, stack_size, stack_trace_sample, sizeof(void*)); in CheckThreadOffsets()
Dutils.h210 void GetThreadStack(pthread_t thread, void** stack_base, size_t* stack_size, size_t* guard_size);
/art/runtime/native/
Djava_lang_Thread.cc49 static void Thread_nativeCreate(JNIEnv* env, jclass, jobject java_thread, jlong stack_size, in Thread_nativeCreate() argument
51 Thread::CreateNativeThread(env, java_thread, stack_size, daemon == JNI_TRUE); in Thread_nativeCreate()