RFR: 8221723: Avoid storing zero to String.hash

Claes Redestad claes.redestad at oracle.com
Mon Apr 1 18:08:15 UTC 2019

On 2019-04-01 20:01, Martin Buchholz wrote:
> Let me try again...  We exclude 0-hash Strings from archiving because we 
> might write to the hash field,
> BUT the existing guard
> value.length > 0
> ensures that won't happen for empty Strings ... so WHY were we excluding 
> empty Strings from archiving?

I don't think there was a strong reason for that, except maybe
unwillingness to convolute the VM code. I'm now trying to remove this
exclusion/limitation altogether with 8221724 alongside this RFE.



More information about the core-libs-dev mailing list