feat: allow stack to grow for process up to 8MB in size
This commit is contained in:
11
src/vm/stackgrowth.h
Normal file
11
src/vm/stackgrowth.h
Normal 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
|
||||
Reference in New Issue
Block a user