RFR(S): 7174363: Arrays.copyOfRange leads to VM crash with -Xcomp -server if executed by testing framework (original) (raw)
Vladimir Kozlov vladimir.kozlov at oracle.com
Wed Jun 13 08:24:10 PDT 2012
- Previous message: RFR(S): 7174363: Arrays.copyOfRange leads to VM crash with -Xcomp -server if executed by testing framework
- Next message: RFR(S): 7174363: Arrays.copyOfRange leads to VM crash with -Xcomp -server if executed by testing framework
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Roland,
Changes are good but. Can you make a compiler regression test from bug report test?
Thanks, Vladimir
On 6/13/12 1:28 AM, Roland Westrelin wrote:
http://cr.openjdk.java.net/~roland/7174363/webrev.00/
2 bugs with Arrays.copyOfRange: - The intrinsified Arrays.copyOfRange(original, from, to) uses min(original.length - from, allocatedarray.length) as the number of elements to copy. If from> original.length, this number is negative but generatearraycopy() is called with lengthnevernegative set to true. That can lead to a crash. - if from> to in copyOfRange(..., int from, int to) the intrinsics code lets the array allocation handle the negative length to - from which results in the wrong exception being thrown. Roland.
- Previous message: RFR(S): 7174363: Arrays.copyOfRange leads to VM crash with -Xcomp -server if executed by testing framework
- Next message: RFR(S): 7174363: Arrays.copyOfRange leads to VM crash with -Xcomp -server if executed by testing framework
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the hotspot-compiler-dev mailing list