8061254: SPECjvm2008-XML performance regressions in 9-b33

Reviewed-by: alanb, shade
This commit is contained in:
Claes Redestad 2015-05-15 16:09:55 +02:00
parent ef28a587f7
commit 608c2ef496

View File

@ -1473,7 +1473,9 @@ public final class String
for (char v : value) { for (char v : value) {
h = 31 * h + v; h = 31 * h + v;
} }
hash = h; if (h != 0) {
hash = h;
}
} }
return h; return h;
} }