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>
Thu, 7 Jul 2016 12:35:51 +0000 (13:35 +0100)
commit9f65db89353c46f6b189656f7f55a99054e5cfce
tree8644957a017c9954372ef73d7bcc457789d294eb
parentf731706af1ce91e9d77f85c36b4dcacce17b7f9b
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

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]