blueloveTH 2 éve
szülő
commit
e42271fd3a
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      src/ceval.h
  2. 1 1
      src/frame.h

+ 1 - 1
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!

+ 1 - 1
src/frame.h

@@ -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;