Commit d681e653 authored by Armin Rigo's avatar Armin Rigo
Browse files

Copy this from ll_arraycopy(). Unsure it's needed but it might.

--HG--
branch : wb_before_move
parent 3b9f7fa48c81
Pipeline #6957 passed with stage
in 5 minutes and 11 seconds
......@@ -420,6 +420,13 @@ def ll_arraymove(array, source_start, source_stop, dest_start):
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rlib.objectmodel import keepalive_until_here
# XXX: Hack to ensure that we get a proper effectinfo.write_descrs_arrays
# and also, maybe, speed up very small cases
if source_stop - source_start <= 1:
if source_stop != source_start:
copy_item(array, array, source_start, dest_start)
return
TP = lltype.typeOf(array).TO
slowpath = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment