[pypy-svn] r75000 - pypy/trunk/pypy/rlib

afa at codespeak.net afa at codespeak.net
Tue Jun 1 14:39:12 CEST 2010


Author: afa
Date: Tue Jun  1 14:39:10 2010
New Revision: 75000

Modified:
   pypy/trunk/pypy/rlib/rwin32.py
Log:
The JIT does not like lltype.malloc(flavor='raw'); hide the function.


Modified: pypy/trunk/pypy/rlib/rwin32.py
==============================================================================
--- pypy/trunk/pypy/rlib/rwin32.py	(original)
+++ pypy/trunk/pypy/rlib/rwin32.py	Tue Jun  1 14:39:10 2010
@@ -7,6 +7,7 @@
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 from pypy.rpython.lltypesystem import lltype, rffi
 from pypy.rlib.rarithmetic import intmask
+from pypy.rlib import jit
 import os, sys, errno
 
 # This module can be imported on any platform,
@@ -198,6 +199,7 @@
                                 [lltype.Ptr(OSVERSIONINFO)],
                                 DWORD)
 
+    @jit.dont_look_inside
     def GetVersionEx():
         info = lltype.malloc(OSVERSIONINFO, flavor='raw')
         rffi.setintfield(info, 'c_dwOSVersionInfoSize',



More information about the Pypy-commit mailing list