[pypy-svn] r79044 - pypy/branch/fast-forward/pypy/module/sys

afa at codespeak.net afa at codespeak.net
Fri Nov 12 16:25:03 CET 2010

Author: afa
Date: Fri Nov 12 16:25:01 2010
New Revision: 79044

When a llexternal function is defined in a "separate_module_source", chances
are that it's not declared in any header.
This is not a major problem for the C translation, (the compiler will emit a
warning for the function call), but the jitcode cannot compile because it
needs the address of the function.

In short: mark the calling code with @jit.dont_look_inside

Modified: pypy/branch/fast-forward/pypy/module/sys/vm.py
--- pypy/branch/fast-forward/pypy/module/sys/vm.py	(original)
+++ pypy/branch/fast-forward/pypy/module/sys/vm.py	Fri Nov 12 16:25:01 2010
@@ -4,6 +4,7 @@
 from pypy.interpreter.error import OperationError
 from pypy.interpreter.gateway import ObjSpace
 from pypy.rlib.runicode import MAXUNICODE
+from pypy.rlib import jit
 import sys
 # ____________________________________________________________
@@ -136,6 +137,7 @@
+ at jit.dont_look_inside
 def get_dllhandle(space):
     if not space.config.objspace.usemodules.cpyext:
         return space.wrap(0)

More information about the Pypy-commit mailing list