feat: allow stack to grow for process up to 8MB in size

This commit is contained in:
EDiasAlberto
2024-11-26 04:43:25 +00:00
parent 605050e38d
commit 3ef5264b6e
4 changed files with 57 additions and 0 deletions

11
src/vm/stackgrowth.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef GROWSTACK_H
#define GROWSTACK_H
#include <stdio.h>
#define MAX_STACK_SIZE 8388608 // (8MB)
bool needs_new_page (void *addr, void *esp);
bool grow_stack (void *addr);
#endif //GROWSTACK_H