From e42271fd3adf793bf35205185498061853ea3b51 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 18 Apr 2023 01:04:25 +0800 Subject: [PATCH] ... --- src/ceval.h | 2 +- src/frame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceval.h b/src/ceval.h index b10534bd..4d82535c 100644 --- a/src/ceval.h +++ b/src/ceval.h @@ -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! diff --git a/src/frame.h b/src/frame.h index 67973685..99c38497 100644 --- a/src/frame.h +++ b/src/frame.h @@ -130,7 +130,7 @@ template<> inline void gc_mark(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;