Scaling problem of HashMap (introduced with alternative hashing) (original) (raw)
Eric McCorkle eric.mccorkle at oracle.com
Thu Dec 27 19:57:32 UTC 2012
- Previous message: Scaling problem of HashMap (introduced with alternative hashing)
- Next message: hg: jdk8/tl/jdk: 8003981: Support Parallel Array Sorting - JEP 103
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
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
- Previous message: Scaling problem of HashMap (introduced with alternative hashing)
- Next message: hg: jdk8/tl/jdk: 8003981: Support Parallel Array Sorting - JEP 103
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]