Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r51953:828709b0e0e9
Date: 2012-01-29 12:43 +0100
http://bitbucket.org/pypy/pypy/changeset/828709b0e0e9/

Log:    Don't look inside these functions. (Looking in str_from_buffer()
        causes anyway the jit to crash on cast_ptr_to_adr.)

diff --git a/pypy/rpython/lltypesystem/rffi.py 
b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -759,6 +759,7 @@
     alloc_buffer._annenforceargs_ = [int]
 
     # (char*, str, int, int) -> None
+    @jit.dont_look_inside
     def str_from_buffer(raw_buf, gc_buf, allocated_size, needed_size):
         """
         Converts from a pair returned by alloc_buffer to a high-level string.
@@ -784,6 +785,7 @@
         return hlstrtype(new_buf)
 
     # (char*, str) -> None
+    @jit.dont_look_inside
     def keep_buffer_alive_until_here(raw_buf, gc_buf):
         """
         Keeps buffers alive or frees temporary buffers created by alloc_buffer.
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to