Author: Armin Rigo <[email protected]>
Branch: cpyext-gc-support-2
Changeset: r82218:400bb271c619
Date: 2016-02-13 16:15 +0100
http://bitbucket.org/pypy/pypy/changeset/400bb271c619/

Log:    test_tuple_resize passes again

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -828,6 +828,7 @@
     modulename = py.path.local(eci.libraries[-1])
 
     def dealloc_trigger():
+        from pypy.module.cpyext.pyobject import _Py_Dealloc
         print 'dealloc_trigger...'
         while True:
             ob = rawrefcount.next_dead(PyObject)
diff --git a/pypy/module/cpyext/pyobject.py b/pypy/module/cpyext/pyobject.py
--- a/pypy/module/cpyext/pyobject.py
+++ b/pypy/module/cpyext/pyobject.py
@@ -317,7 +317,7 @@
 
 @cpython_api([PyObject], lltype.Void)
 def Py_IncRef(space, obj):
-    incref(obj)
+    incref(space, obj)
 
 @cpython_api([PyObject], lltype.Void)
 def Py_DecRef(space, obj):
@@ -332,11 +332,11 @@
 
 @cpython_api([PyObject], lltype.Void)
 def _Py_Dealloc(space, obj):
-    from pypy.module.cpyext.api import generic_cpy_call_dont_decref
+    from pypy.module.cpyext.api import generic_cpy_call
     pto = obj.c_ob_type
     #print >>sys.stderr, "Calling dealloc slot", pto.c_tp_dealloc, "of", obj, \
     #      "'s type which is", rffi.charp2str(pto.c_tp_name)
-    generic_cpy_call_dont_decref(space, pto.c_tp_dealloc, obj)
+    generic_cpy_call(space, pto.c_tp_dealloc, obj)
 
 @cpython_api([rffi.VOIDP], lltype.Signed, error=CANNOT_FAIL)
 def _Py_HashPointer(space, ptr):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to