[pypy-commit] pypy default: Hack to ensure that ll_arraycopy gets a proper effectinfo.write_descrs_arrays

hakanardo noreply at buildbot.pypy.org
Fri Sep 30 20:06:15 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: 
Changeset: r47722:bf3f65e2b1c2
Date: 2011-09-30 19:48 +0200
http://bitbucket.org/pypy/pypy/changeset/bf3f65e2b1c2/

Log:	Hack to ensure that ll_arraycopy gets a proper
	effectinfo.write_descrs_arrays

diff --git a/pypy/rlib/rgc.py b/pypy/rlib/rgc.py
--- a/pypy/rlib/rgc.py
+++ b/pypy/rlib/rgc.py
@@ -143,6 +143,10 @@
     from pypy.rpython.lltypesystem.lloperation import llop
     from pypy.rlib.objectmodel import keepalive_until_here
 
+    # XXX: Hack to ensure that we get a proper effectinfo.write_descrs_arrays
+    if length > 0:
+        dest[dest_start] = source[source_start]
+
     # supports non-overlapping copies only
     if not we_are_translated():
         if source == dest:


More information about the pypy-commit mailing list