[pypy-commit] pypy default: revert removal of c_memcpy
mattip
noreply at buildbot.pypy.org
Sun Sep 15 20:11:48 CEST 2013
Author: mattip <matti.picus at gmail.com>
Branch:
Changeset: r66960:59798bebed04
Date: 2013-09-15 21:06 +0300
http://bitbucket.org/pypy/pypy/changeset/59798bebed04/
Log: revert removal of c_memcpy
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
+ )
+
More information about the pypy-commit
mailing list