Author: Matti Picus <[email protected]>
Branch:
Changeset: r84146:089032a1e454
Date: 2016-05-02 14:01 +0300
http://bitbucket.org/pypy/pypy/changeset/089032a1e454/
Log: remove DEBUG_REFCOUNT, which completes TODO
diff --git a/TODO b/TODO
deleted file mode 100644
--- a/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
-* reduce size of generated c code from slot definitions in slotdefs.
-* remove broken DEBUG_REFCOUNT from pyobject.py
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
@@ -152,17 +152,6 @@
class InvalidPointerException(Exception):
pass
-DEBUG_REFCOUNT = False
-
-def debug_refcount(*args, **kwargs):
- frame_stackdepth = kwargs.pop("frame_stackdepth", 2)
- assert not kwargs
- frame = sys._getframe(frame_stackdepth)
- print >>sys.stderr, "%25s" % (frame.f_code.co_name, ),
- for arg in args:
- print >>sys.stderr, arg,
- print >>sys.stderr
-
def create_ref(space, w_obj, itemcount=0):
"""
Allocates a PyObject, and fills its fields with info from the given
@@ -192,10 +181,6 @@
# XXX looks like a PyObject_GC_TRACK
assert py_obj.c_ob_refcnt < rawrefcount.REFCNT_FROM_PYPY
py_obj.c_ob_refcnt += rawrefcount.REFCNT_FROM_PYPY
- if DEBUG_REFCOUNT:
- debug_refcount("MAKREF", py_obj, w_obj)
- assert w_obj
- assert py_obj
rawrefcount.create_link_pypy(w_obj, py_obj)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit