diff options
Diffstat (limited to 'pypy/module/cpyext/pyobject.py')
-rw-r--r-- | pypy/module/cpyext/pyobject.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pypy/module/cpyext/pyobject.py b/pypy/module/cpyext/pyobject.py index 793bac0354..e4dba23f4e 100644 --- a/pypy/module/cpyext/pyobject.py +++ b/pypy/module/cpyext/pyobject.py @@ -50,7 +50,8 @@ class BaseCpyTypedescr(object): size += itemcount * pytype.c_tp_itemsize assert size >= rffi.sizeof(PyObject.TO) buf = lltype.malloc(rffi.VOIDP.TO, size, - flavor='raw', zero=True) + flavor='raw', zero=True, + add_memory_pressure=True) pyobj = rffi.cast(PyObject, buf) pyobj.c_ob_refcnt = 1 pyobj.c_ob_type = pytype |