|
|
@@ -42,7 +42,7 @@ struct ManagedHeap{
|
|
|
PyVar gcnew(Type type, Args&&... args){
|
|
|
using __T = Py_<std::decay_t<T>>;
|
|
|
// https://github.com/pocketpy/pocketpy/issues/94#issuecomment-1594784476
|
|
|
- PyObject* p = new(pool64_alloc<__T>()) Py_<std::decay_t<T>>(std::forward<Args>(args)...);
|
|
|
+ PyObject* p = new(pool128_alloc<__T>()) Py_<std::decay_t<T>>(std::forward<Args>(args)...);
|
|
|
PyVar obj(type, p);
|
|
|
gen.push_back(obj);
|
|
|
gc_counter++;
|
|
|
@@ -53,7 +53,7 @@ struct ManagedHeap{
|
|
|
PyVar _new(Type type, Args&&... args){
|
|
|
using __T = Py_<std::decay_t<T>>;
|
|
|
// https://github.com/pocketpy/pocketpy/issues/94#issuecomment-1594784476
|
|
|
- PyObject* p = new(pool64_alloc<__T>()) Py_<std::decay_t<T>>(std::forward<Args>(args)...);
|
|
|
+ PyObject* p = new(pool128_alloc<__T>()) Py_<std::decay_t<T>>(std::forward<Args>(args)...);
|
|
|
PyVar obj(type, p);
|
|
|
obj->gc_enabled = false;
|
|
|
_no_gc.push_back(obj);
|