OSDN Git Service

Fix System.arraycopy when doing same array copying.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 7 Jul 2016 11:07:42 +0000 (12:07 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Fri, 8 Jul 2016 14:17:56 +0000 (15:17 +0100)
commitb198b013ae7bd2da85e007414fc028cd51a13883
tree68e03f732bac2c04305dfac3004fcfc47cd8b223
parent5e99abdef2c9a581d5a3f16b1aeb8b0391e1f91b
Fix System.arraycopy when doing same array copying.

At compile time, if constant source < constant destination, and we don't
know if the arrays are the same, then we must emit code that checks
if the two arrays are the same. If so, we jump to the slow path.

test:610-arraycopy

bug:30030084

(cherry picked from commit 9f65db89353c46f6b189656f7f55a99054e5cfce)

Change-Id:Ida67993d472b0ba4056d9c21c68f6e5239421f7d
compiler/optimizing/intrinsics_arm.cc
compiler/optimizing/intrinsics_arm64.cc
compiler/optimizing/intrinsics_x86_64.cc
test/610-arraycopy/expected.txt [new file with mode: 0644]
test/610-arraycopy/info.txt [new file with mode: 0644]
test/610-arraycopy/src/Main.java [new file with mode: 0644]