mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
...
This commit is contained in:
parent
05678df95d
commit
e42271fd3a
@ -21,7 +21,7 @@ inline PyObject* VM::_run_top_frame(){
|
|||||||
#endif
|
#endif
|
||||||
try{
|
try{
|
||||||
if(need_raise){ need_raise = false; _raise(); }
|
if(need_raise){ need_raise = false; _raise(); }
|
||||||
if(s_data.is_overflow()) StackOverflowError();
|
// if(s_data.is_overflow()) StackOverflowError();
|
||||||
/**********************************************************************/
|
/**********************************************************************/
|
||||||
/* NOTE:
|
/* NOTE:
|
||||||
* Be aware of accidental gc!
|
* Be aware of accidental gc!
|
||||||
|
@ -130,7 +130,7 @@ template<> inline void gc_mark<Function>(Function& t){
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct ValueStack {
|
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`.
|
// We allocate 512 more bytes to keep `_sp` valid when `is_overflow() == true`.
|
||||||
PyObject* _begin[MAX_SIZE + 512];
|
PyObject* _begin[MAX_SIZE + 512];
|
||||||
PyObject** _sp;
|
PyObject** _sp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user