This commit is contained in:
blueloveTH 2023-04-18 01:04:25 +08:00
parent 05678df95d
commit e42271fd3a
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ inline PyObject* VM::_run_top_frame(){
#endif
try{
if(need_raise){ need_raise = false; _raise(); }
if(s_data.is_overflow()) StackOverflowError();
// if(s_data.is_overflow()) StackOverflowError();
/**********************************************************************/
/* NOTE:
* Be aware of accidental gc!

View File

@ -130,7 +130,7 @@ template<> inline void gc_mark<Function>(Function& t){
}
struct ValueStack {
static const size_t MAX_SIZE = 16384;
static const size_t MAX_SIZE = 8192;
// We allocate 512 more bytes to keep `_sp` valid when `is_overflow() == true`.
PyObject* _begin[MAX_SIZE + 512];
PyObject** _sp;