[pypy-svn] r64897 - pypy/branch/pyjitpl5/pypy/module/pypyjit

fijal at codespeak.net fijal at codespeak.net
Fri May 1 00:17:12 CEST 2009


Author: fijal
Date: Fri May  1 00:17:11 2009
New Revision: 64897

Modified:
   pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py
Log:
skip subclasses


Modified: pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py	(original)
+++ pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py	Fri May  1 00:17:11 2009
@@ -54,4 +54,10 @@
         #    return False
         #if func.__name__ == 'll_update':
         #    return False
+
+        # weakref support
+        if (mod == 'pypy.objspace.std.typeobject' and
+            func.__name__ == 'get_subclasses'):
+            return False
+        
         return super(PyPyJitPolicy, self).look_inside_function(func)



More information about the Pypy-commit mailing list