[pypy-svn] r73844 - in pypy/trunk/pypy/module/pypyjit: . test

fijal at codespeak.net fijal at codespeak.net
Sat Apr 17 23:23:06 CEST 2010


Author: fijal
Date: Sat Apr 17 23:23:04 2010
New Revision: 73844

Modified:
   pypy/trunk/pypy/module/pypyjit/policy.py
   pypy/trunk/pypy/module/pypyjit/test/test_policy.py
Log:
Don't look into rlocale


Modified: pypy/trunk/pypy/module/pypyjit/policy.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/policy.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/policy.py	Sat Apr 17 23:23:04 2010
@@ -24,8 +24,7 @@
             # gc_id operation
             if func.__name__ == 'id__ANY':
                 return False
-        if mod == 'pypy.rlib.rbigint':
-            #if func.__name__ == '_bigint_true_divide':
+        if mod == 'pypy.rlib.rbigint' or mod == 'pypy.rlib.rlocale':
             return False
         if '_geninterp_' in func.func_globals: # skip all geninterped stuff
             return False

Modified: pypy/trunk/pypy/module/pypyjit/test/test_policy.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/test/test_policy.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/test/test_policy.py	Sat Apr 17 23:23:04 2010
@@ -10,6 +10,10 @@
     from pypy.rlib.rbigint import rbigint
     assert not pypypolicy.look_inside_function(rbigint.lt.im_func)
 
+def test_rlocale():
+    from pypy.rlib.rlocale import setlocale
+    assert not pypypolicy.look_inside_function(setlocale)    
+
 def test_geninterp():
     d = {'_geninterp_': True}
     exec """def f():



More information about the Pypy-commit mailing list