feat: increase stak size
This commit is contained in:
parent
72ca4177d3
commit
217c79b3ac
@ -33,7 +33,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef STACK_SIZE
|
#ifndef STACK_SIZE
|
||||||
#define STACK_SIZE 4096
|
#define STACK_SIZE 128 * 1024
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Variables used to clean up everything at the end of the processus
|
// 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.
|
// Create an entry for the main thread.
|
||||||
|
|
||||||
struct context_entry_t *new_entry;
|
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));
|
new_entry = malloc(sizeof(*new_entry));
|
||||||
memset(new_entry->stack, 0, STACK_SIZE);
|
memset(new_entry->stack, 0, STACK_SIZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user