Author: Armin Rigo <[email protected]>
Branch:
Changeset: r47747:78fddfb51114
Date: 2011-10-01 12:45 +0200
http://bitbucket.org/pypy/pypy/changeset/78fddfb51114/
Log: Tweak the hack: it should be equivalent, but have no remaining
effect at run-time.
diff --git a/pypy/rlib/rgc.py b/pypy/rlib/rgc.py
--- a/pypy/rlib/rgc.py
+++ b/pypy/rlib/rgc.py
@@ -3,6 +3,7 @@
from pypy.rlib import jit
from pypy.rlib.objectmodel import we_are_translated, enforceargs, specialize
+from pypy.rlib.nonconst import NonConstant
from pypy.rpython.extregistry import ExtRegistryEntry
from pypy.rpython.lltypesystem import lltype, llmemory
@@ -144,7 +145,7 @@
from pypy.rlib.objectmodel import keepalive_until_here
# XXX: Hack to ensure that we get a proper effectinfo.write_descrs_arrays
- if length > 0:
+ if NonConstant(False):
dest[dest_start] = source[source_start]
# supports non-overlapping copies only
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit