On Fri, Sep 30, 2011 at 6:15 PM, Hakan Ardo <ha...@debian.org> wrote: > Hi, > is there a better way to fix this? The same kind of issue might arise > elsewhere?
Make sure that raw_memcopy has the correct effect on analyzer? > >> 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: > > > -- > Håkan Ardö > _______________________________________________ > pypy-dev mailing list > pypy-dev@python.org > http://mail.python.org/mailman/listinfo/pypy-dev > _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev