Scaling problem of HashMap (introduced with alternative hashing)

Zhong Yu zhong.j.yu at
Thu Dec 27 19:16:10 UTC 2012

Reported by the SO question

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

More information about the core-libs-dev mailing list