Java 1.4.2 Released
peterwilm writes "Sun released Java 1.4.2 today. It includes many enhancements and changes among them the native look&feel for Win XP and GTK 2.0 as well as support for Itanium 2."
← Back to Stories (view on slashdot.org)
well how fast is it?
The message on the other side of this sig is false.
The Java HotSpot VM cannot expand its heap size if memory is completely allocated and no swap space is available.
I've finally had it: until slashdot gets article moderation, I am not coming back.
I expect my Java VM to start killing off other processes at random until it DOES work!!!
That's "Mr. Soulless Automaton" to you, Bub.
I downloaded it yesterday so I must have been lucky. I needed it for eclipse. BTW where the hell is good free online documentation on how the hell to use eclipse, swt, etc.?
I keep getting connection refused. How about you?
Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
That's just one more reason why people are flocking to SWT over Swing.
1;
Would that be Java 1.4.2, or is it Java 2. Or is it Java 2 full speed? And when will SCO be suing the bastards?
If tits were wings it'd be flying around.
That seems like alot of improvements for such a smal point update.
He who knows not and knows he knows not is a wise man. He who knows not and knows not he knows not is a fool.
http://java.sun.com/j2se/5.5.5/
I literally just finished downloading the 2nd beta last night.
Click here or a puppy gets stomped!
mod parent up!! The marketing folks at Sun had already fscked up solaris/sunos version numbers, and now Java.
Garbage Collection is the enemy of NIO. You have to explicitly close everything now. And tell me why optional deterministic destruction in Java is considered a bad thing? Writing all this extra code to close stuff sucks.
New I/O (NIO)
The following changes have been made to java.nio functionality in J2SE 1.4.2.
* The finalize methods of the primitive channel classes (SocketChannel, ServerSocketChannel, etc.) have been removed (4777499). Performance testing revealed that the presence of these methods imposed a significant (factor of 100) garbage-collection penalty upon server-type applications that process thousands of new open channels per second. User code that deals in channels should be carefully written to close channels explicitly rather than rely upon the garbage collector to do so.
How fast is my cable modem?
:-P
Faster than Java.
If your machine is swapping non-stop, it could be thrashing. If it's thrashing, then you should probably give up and buy more memory since you're basically using your hard drive as RAM at this point.
You might want to try generating the Java API docs with 'javadoc' for more VM fun.
On my PC :
j2re-1.4.0_01-windows-i586.exe - 9170 Kb
j2re-1.4.1_01-windows-i586.exe - 7829 Kb
j2re-1.4.2-windows-i586.exe - 14162 Kb
Does anyone understand this ? :-) ... I just assumed the code got more efficient ... but by the same token, it just got a whole lot less efficient ... or bloated, or something. Maybe it's all those multiple environment look'n'feels.
In fact, does anyone know why the download size actually went down betwen 1.4.0 and 1.4.1 ? Not that I'm complaining about that
If you don't pray in my school, I won't think in your church.
That doesn't have to be true.
Say you have a machine with 256MB RAM. You run a Java app with -Xmx256M. Java will allocate up to 256MB of RAM since it doesn't know that only the first 200M is fast and the remaining 56MB is swap.
Decrease -Xmx to 150M and the gc() will run more often, not swap, and run more efficiently.
I think the most interresting change ist this:
These previously unimplemented JVMDI functions have been implemented:
jvmdiError GetOwnedMonitorInfo(jthread thread, JVMDI_owned_monitor_info *infoPtr)
jvmdiError GetCurrentContendedMonitor(jthread thread, jobject *monitorPtr)
Does this mean monitor information is now reported correctly in profiler-dumps and via JPDA? That would be soooo great -- i'm waitng for that for 2 years now. Finding deadlocks using a trial-and-error aproach ist just a pain... Eclipse even has an extra "Threads/Monitors/Deadlocks" view, that just keeps telling me that my VM does not support that feature:(
Does anyone know more?
BTW: don't use the web-installer (window), it's slow. go for the offline version. And you don't need to fill the info form. There is a "continue download" link at the top.
I have discovered a truly remarkable sig which this 120 chars is too small to contain.