RFR: 8071571: Move substring of same string to slow path
Martin Buchholz
martinrb at google.com
Tue May 12 17:34:08 UTC 2015
Hi Ivan,
The code below looks wrong to me - sb.length() resolves to sb.count, not
v2.length.
If I'm correct, then there's a missing test to be added, since this error
should be caught by some test.
private boolean nonSyncContentEquals(AbstractStringBuilder sb) {
- char v1[] = value;
- char v2[] = sb.getValue();
+ char[] v1 = value;
+ char[] v2 = sb.getValue();
int n = v1.length;
- if (n != sb.length()) {
+ if (n != v2.length) {
return false;
}
On Mon, May 11, 2015 at 1:52 PM, Ivan Gerasimov <ivan.gerasimov at oracle.com>
wrote:
> I have to take over this fix.
>
> The latest webrev from the review thread above (with a few minor changes)
> is here:
> http://cr.openjdk.java.net/~igerasim/8071571/00/webrev/
>
> Would you please review/approve the fix at your convenience?
>
> Sincerely yours,
> Ivan
>
>
More information about the core-libs-dev
mailing list