fix: preallocate thread 2000
This commit is contained in:
parent
0b2b0143e5
commit
b2391b669c
@ -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 < 5000; ++i) {
|
||||
for (int i = 0; i < 2000; ++i) {
|
||||
|
||||
new_entry = malloc(sizeof(*new_entry));
|
||||
memset(new_entry->stack, 0, STACK_SIZE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user