[pypy-svn] r62580 - pypy/branch/pyjitpl5/pypy/jit/tl

fijal at codespeak.net fijal at codespeak.net
Thu Mar 5 14:48:34 CET 2009


Author: fijal
Date: Thu Mar  5 14:48:33 2009
New Revision: 62580

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit.py
Log:
turn off weakrefs and sre (they expose bugs in ll2ctypes when tried on top
of x86 backend)


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit.py	Thu Mar  5 14:48:33 2009
@@ -16,12 +16,16 @@
 config.objspace.nofaking = True
 config.objspace.allworkingmodules = False
 config.objspace.usemodules.pypyjit = True
+config.objspace.usemodules._weakref = False
+config.objspace.usemodules._sre = False
+config.translation.rweakref = False # XXX
 set_pypy_opt_level(config, level='0')
 config.objspace.std.multimethods = 'mrd'
 config.objspace.std.builtinshortcut = True
 multimethod.Installer = multimethod.InstallerVersion2
 print config
 
+import sys, pdb
 
 space = Space(config)
 w_dict = space.newdict()
@@ -50,9 +54,14 @@
     from pypy.rpython.test.test_llinterp import get_interpreter
 
     # first annotate, rtype, and backendoptimize PyPy
-    interp, graph = get_interpreter(entry_point, [], backendopt=True,
-                                    config=config,
-                                    policy=PyPyAnnotatorPolicy(space))
+    try:
+        interp, graph = get_interpreter(entry_point, [], backendopt=True,
+                                        config=config,
+                                        policy=PyPyAnnotatorPolicy(space))
+    except Exception, e:
+        print '%s: %s' % (e.__class__, e)
+        pdb.post_mortem(sys.exc_info()[2])
+
 
     # parent process loop: spawn a child, wait for the child to finish,
     # print a message, and restart



More information about the Pypy-commit mailing list