hg: jdk7/tl/jdk: 3 new changesets

martinrb at google.com martinrb at google.com
Thu Nov 5 16:13:41 PST 2009

Changeset: 6b48ea20e0b9
Author:    martin
Date:      2009-11-04 15:22 -0800
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/6b48ea20e0b9

6897993: (se) Close or cancel performance issue when number of pending updates is high (lnx)
Summary: Use O(1) Iterator instead of O(N) operations on LinkedList updateList
Reviewed-by: alanb
Contributed-by: Igor Chernyshev <igorc at google.com>

! src/solaris/classes/sun/nio/ch/EPollArrayWrapper.java
+ test/java/nio/channels/Selector/LotsOfCancels.java

Changeset: 6d24852165ba
Author:    martin
Date:      2009-11-05 16:12 -0800
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/6d24852165ba

6897553: LinkedList performance improvements
Summary: LinkedList of size N creates N+1 instead of N+2 objects.  Comparing against null is faster than comparing against sentinel node
Reviewed-by: dl, jjb, forax

! src/share/classes/java/util/LinkedList.java
! test/java/util/Collection/MOAT.java

Changeset: 285f9f567cb4
Author:    martin
Date:      2009-11-05 16:12 -0800
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/285f9f567cb4

6898220: Optimize Formatter.parse (including String.printf)
Summary: Create fewer objects when parsing
Reviewed-by: sherman
Contributed-by: Daniel Martin <dtm at google.com>

! src/share/classes/java/util/Formatter.java

More information about the compiler-dev mailing list