Author: Alex Gaynor <[email protected]>
Branch: 
Changeset: r59464:f39bcfa37203
Date: 2012-12-16 13:58 -0800
http://bitbucket.org/pypy/pypy/changeset/f39bcfa37203/

Log:    Make get_rpy_roots callable from an untranslated PyPy, with the
        caveat that it is very slow.

diff --git a/pypy/rlib/rgc.py b/pypy/rlib/rgc.py
--- a/pypy/rlib/rgc.py
+++ b/pypy/rlib/rgc.py
@@ -230,9 +230,8 @@
 def get_rpy_roots():
     "NOT_RPYTHON"
     # Return the 'roots' from the GC.
-    # This stub is not usable on top of CPython.
     # The gc typically returns a list that ends with a few NULL_GCREFs.
-    raise NotImplementedError
+    return [_GcRef(x) for x in gc.get_objects()]
 
 def get_rpy_referents(gcref):
     "NOT_RPYTHON"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to