It looks like its just generating a unique random seed for each HashMap.  It 
seems like that could be made thread-local.

On Dec 27, 2012, at 2:16 PM, Zhong Yu <zhong.j...@gmail.com> wrote:

> Reported by the SO question
> 
>    http://stackoverflow.com/questions/14010906
> 
> the HashMap constructor contains a CAS, which is kind of surprising.
> Could it be removed?
> 
>    transient final int hashSeed =
> sun.misc.Hashing.randomHashSeed(this);  // CAS
> 
> Zhong Yu

Reply via email to