Merge pull request #6997 from tf2spi/6981-increase-stack-size

Increase stack size for threads
This commit is contained in:
gingerBill
2026-07-11 10:37:55 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -881,7 +881,7 @@ gb_global TargetMetrics target_freestanding_arm32 = {
TargetOs_freestanding,
TargetArch_arm32,
4, 4, 8, 16,
str_lit("arm-unknown-unknown-gnueabihf"),
str_lit("arm-none-eabihf"),
};
gb_global TargetMetrics target_freestanding_riscv64 = {
TargetOs_freestanding,

View File

@@ -643,7 +643,7 @@ gb_internal void thread_init(ThreadPool *pool, Thread *t, isize idx) {
gb_internal void thread_init_and_start(ThreadPool *pool, Thread *t, isize idx) {
thread_init(pool, t, idx);
isize stack_size = 0;
isize stack_size = 1 * 1024 * 1024; // 1 MiB (LLVM takes a lot of stack space)
#if defined(GB_SYSTEM_WINDOWS)
t->win32_handle = CreateThread(NULL, stack_size, internal_thread_proc, t, 0, NULL);
@@ -1067,4 +1067,4 @@ void atomic_freelist_put(std::atomic<AtomicFreelist<T> *> &head_list, AtomicFree
}
}
}
}