commit | b198b013ae7bd2da85e007414fc028cd51a13883 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Thu Jul 07 12:07:42 2016 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Fri Jul 08 15:17:56 2016 +0100 |
tree | 68e03f732bac2c04305dfac3004fcfc47cd8b223 | |
parent | 5e99abdef2c9a581d5a3f16b1aeb8b0391e1f91b [diff] |
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