[pypy-commit] pypy stmgc-c7: fix
arigo
noreply at buildbot.pypy.org
Wed Nov 12 18:02:50 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r74484:f43c46bcf4be
Date: 2014-11-12 17:01 +0100
http://bitbucket.org/pypy/pypy/changeset/f43c46bcf4be/
Log: fix
diff --git a/rpython/rtyper/lltypesystem/rstr.py b/rpython/rtyper/lltypesystem/rstr.py
--- a/rpython/rtyper/lltypesystem/rstr.py
+++ b/rpython/rtyper/lltypesystem/rstr.py
@@ -1251,6 +1251,14 @@
SRC = typeOf(src).TO # STR or UNICODE
DST = typeOf(dst).TO # GcArray
assert DST.OF is SRC.chars.OF
+
+ if rgc.stm_is_enabled():
+ i = 0
+ while i < length:
+ dst[i] = src.chars[i]
+ i += 1
+ return lst
+
# from here, no GC operations can happen
asrc = llmemory.cast_ptr_to_adr(src) + (
llmemory.offsetof(SRC, 'chars') +
More information about the pypy-commit
mailing list