Author: mattip <[email protected]>
Branch: safe-win-mmap
Changeset: r66961:85f6662a9d4d
Date: 2013-09-15 21:10 +0300
http://bitbucket.org/pypy/pypy/changeset/85f6662a9d4d/

Log:    merge default into branch

diff --git a/rpython/rtyper/lltypesystem/rffi.py 
b/rpython/rtyper/lltypesystem/rffi.py
--- a/rpython/rtyper/lltypesystem/rffi.py
+++ b/rpython/rtyper/lltypesystem/rffi.py
@@ -1132,3 +1132,12 @@
         keep_unicodebuffer_alive_until_here(self.raw, self.gc_buf)
     def str(self, length):
         return unicode_from_buffer(self.raw, self.gc_buf, self.size, length)
+
+# You would have to have a *huge* amount of data for this to block long enough
+# to be worth it to release the GIL.
+c_memcpy = llexternal("memcpy",
+            [VOIDP, VOIDP, SIZE_T],
+            lltype.Void,
+            threadsafe=False
+        )
+
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to