14 Commits

Author SHA1 Message Date
Mike Duigou
3e6daeda3a 7143928: Optimize empty HashMap and ArrayList
Co-authored-by: Sergey Linetskiy <sergey.linetskiy@oracle.com>
Co-authored-by: John Rose <john.rose@oracle.com>
Reviewed-by: mduigou
2013-04-01 20:15:48 -07:00
Dan Xu
b6bee3c9e9 7193406: Clean-up JDK Build Warnings in java.util, java.io
Clean-up JDK Build Warnings in java.util, java.io Packages

Reviewed-by: smarks, darcy, khazra, dholmes, forax, dl, andrew, aph, omajid, ulfzibis, christos, mduigou
2012-08-31 13:42:47 -07:00
Mike Duigou
4824bf600d 7173919: Minor optimization of hashing methods
Several minor optimizations to hashing methods used by hash map classes

Reviewed-by: dholmes
2012-06-13 16:48:30 -07:00
Alan Bateman
f3159c31b0 7174736: JCK test api/java_util/HashMap/index_EntrySet failing
Corrects a problem with HashMap.removeEntry() that caused a JCK test to fail

Reviewed-by: mduigou
2012-06-07 01:01:09 -07:00
Mike Duigou
59ccdc0fbc 7173432: Handle null key at HashMap resize
If the key to be inserted into a HashMap is null and the table needs to be resized as part of the insertion then addEntry will try to recalculate the hash of a null key. This will fail with an NPE.

Reviewed-by: darcy
2012-06-01 00:05:21 -07:00
Mike Duigou
705c53b045 7126277: Alternative String hashing implementation
All of the hashing based Map implementations: HashMap, Hashtable, LinkedHashMap, WeakHashMap and ConcurrentHashMap are modified to use an enhanced hashing algorithm for string keys when the capacity of the hash table has ever grown beyond 512 entries. The enhanced hashing implementation uses the murmur3 hashing algorithm along with random hash seeds and index masks. These enhancements mitigate cases where colliding String hash values could result in a performance bottleneck.

Reviewed-by: alanb, forax, dl
2012-05-30 22:18:37 -07:00
Remi Forax
00ef83a6ab 7157893: Warnings Cleanup in java.util.*
Minor code changes to cleanup warnings in java.util.*

Reviewed-by: mduigou, naoto, smarks
2012-04-17 12:21:56 -07:00
Kelly O'Hair
d2b1e20c7d 7033660: Update copyright year to 2011 on any files changed in 2011
Reviewed-by: dholmes
2011-04-06 22:06:11 -07:00
Stuart Marks
6e7cb44eea 6880112: Project Coin: Port JDK core library code to use diamond operator
Reviewed-by: darcy, lancea, alanb, briangoetz, mduigou, mchung
2010-12-20 13:47:04 -08:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Doug Lea
ef2dd097cc 6865582: jsr166y - jsr166 maintenance update
6865571: Add a lightweight task framework known as ForkJoin
6445158: Phaser - an improved CyclicBarrier
6865579: Add TransferQueue/LinkedTransferQueue

Reviewed-by: martin, chegar, dice
2009-11-02 17:25:38 -08:00
Xiomara Jayasena
2617d1d179 6719955: Update copyright year
Update copyright year for files that have been modified in 2008

Reviewed-by: ohair, tbell
2008-07-02 12:55:45 -07:00
Martin Buchholz
5d9d5e3e88 6625725: (coll) modCount should not be volatile
Reviewed-by: dholmes
2008-03-10 23:23:48 -07:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00