RFR: 8221836: Avoid recalculating String.hash when zero

Claes Redestad claes.redestad at oracle.com
Tue Apr 9 08:42:16 UTC 2019


Hi Andrew,

On 2019-04-09 10:20, Andrew Dinn wrote:
> If the patch is to go in -- and I concede there is an acceptable argument for that -- then it
> needs commenting to help avoid this happening.

open.02 already adds what I believed to be sufficient commenting, have
you taken this into consideration?

http://cr.openjdk.java.net/~redestad/8221836/open.02/src/java.base/share/classes/java/lang/String.java.udiff.html

/Claes



More information about the hotspot-gc-dev mailing list