diff --git a/src/thread/thread.c b/src/thread/thread.c index d365be6..2379bcc 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -33,7 +33,7 @@ #endif #ifndef STACK_SIZE -#define STACK_SIZE 4096 +#define STACK_SIZE 128 * 1024 #endif // Variables used to clean up everything at the end of the processus @@ -296,7 +296,7 @@ void __attribute__((constructor)) setup_main_thread() // Create an entry for the main thread. struct context_entry_t *new_entry; - for (int i = 0; i < 2000; ++i) { + for (int i = 0; i < 10000; ++i) { new_entry = malloc(sizeof(*new_entry)); memset(new_entry->stack, 0, STACK_SIZE);