LibPthread: Make some variables static

This commit is contained in:
Gunnar Beutner 2021-05-28 09:01:27 +02:00 committed by Andreas Kling
parent e679530380
commit f63f471b87
Notes: sideshowbarker 2024-07-18 17:13:27 +09:00

View file

@ -29,9 +29,9 @@ using PthreadAttrImpl = Syscall::SC_create_thread_params;
} // end anonymous namespace
constexpr size_t required_stack_alignment = 4 * MiB;
constexpr size_t highest_reasonable_guard_size = 32 * PAGE_SIZE;
constexpr size_t highest_reasonable_stack_size = 8 * MiB; // That's the default in Ubuntu?
static constexpr size_t required_stack_alignment = 4 * MiB;
static constexpr size_t highest_reasonable_guard_size = 32 * PAGE_SIZE;
static constexpr size_t highest_reasonable_stack_size = 8 * MiB; // That's the default in Ubuntu?
#define __RETURN_PTHREAD_ERROR(rc) \
return ((rc) < 0 ? -(rc) : 0)