Scaling problem of HashMap (introduced with alternative hashing)
eric.mccorkle at oracle.com
Thu Dec 27 19:57:32 UTC 2012
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.yu at gmail.com> wrote:
> 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