Long valueOf instead of new Long (original) (raw)
Pavel Rappo pavel.rappo at oracle.com
Fri Jun 27 10:00:52 UTC 2014
- Previous message: Long valueOf instead of new Long
- Next message: Long valueOf instead of new Long
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I created an issue to track the progress and also made 2 webrevs. One for the original patch and one for the changes that have been suggested earlier in this thread by Paul and Andrej. Here we go:
https://bugs.openjdk.java.net/browse/JDK-8048267
http://cr.openjdk.java.net/~prappo/8048267/webrev.00 http://cr.openjdk.java.net/~prappo/8048267/webrev.01
-Pavel
On 26 Jun 2014, at 10:58, Chris Hegarty <chris.hegarty at oracle.com> wrote:
Otavio,
I skimmed over the patches and they look ok to me. I think they would be suitable for inclusion in jdk9/dev. -Chris. P.S. I do not currently have time to sponsor this, but I cc’ed Pavel who may be able to help get his in. On 14 Jun 2014, at 14:46, Otávio Gonçalves de Santana <otaviojava at java.net> wrote:
Reason: The Long class has cache and using it, will save memory and will faster than using create new instance of Long.
webrev: https://dl.dropboxusercontent.com/u/16109193/openjdk/longvalueof.zip similar: https://bugs.openjdk.java.net/browse/JDK-8044461 -- Otávio Gonçalves de Santana blog: http://otaviosantana.blogspot.com.br/ twitter: http://twitter.com/otaviojava site: http://www.otaviojava.com.br (11) 98255-3513 <suntools.diff><sunsecurity.diff><sunnio.diff><sunmanagement.diff><sunjvmstat.diff><javaxswing.diff><javax-management.diff><javatext.diff><javaawtimage.diff><internalorgobjectweb.diff><comsuntools.diff><comsunsecurity.diff><comsunjmxsnmp.diff><comsunjdnildap.diff><comsunimageio.diff>
- Previous message: Long valueOf instead of new Long
- Next message: Long valueOf instead of new Long
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]