[pypy-commit] pypy cpyext-gc-support-2: next fix

arigo pypy.commits at gmail.com
Sat Feb 13 11:22:18 EST 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: cpyext-gc-support-2
Changeset: r82221:5eb12aee635c
Date: 2016-02-13 16:43 +0100
http://bitbucket.org/pypy/pypy/changeset/5eb12aee635c/

Log:	next fix

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
@@ -61,9 +61,9 @@
         w_type = from_ref(space, rffi.cast(PyObject, obj.c_ob_type))
         w_obj = space.allocate_instance(self.W_BaseObject, w_type)
         track_reference(space, obj, w_obj)
-        if w_type is not space.gettypefor(self.W_BaseObject):
-            state = space.fromcache(RefcountState)
-            state.set_lifeline(w_obj, obj)
+        #if w_type is not space.gettypefor(self.W_BaseObject):
+        #    state = space.fromcache(RefcountState)
+        #    state.set_lifeline(w_obj, obj)
         return w_obj
 
 typedescr_cache = {}


More information about the pypy-commit mailing list