by ShabbyDoo · 12y ago · 0 comments
The article doesn't mention one seemingly huge benefit of JIT compilation: profile-guided optimization:
http://www.slideshare.net/ZeroTurnaround/vladimir-ivanovjvmj...
Perhaps the baby has been thrown out with the bathwater?
Little is mentioned about how ART compares to the JVM. For example, does ART perform escape analysis? Not all object allocations are equally bad. The Sun JVM can figure out which objects may be allocated on TLABs (Thread Local Allocation Buffers) - an optimization which reduces the burden placed on the garbage collector because TLAB-resident objects may be deallocated as the stack is popped. [Please fact-check me as I'm merely a long-time Java developer vs. an expert on JVM internals]
Dalvik was rather primitive and extremely slow in comparison to whichever JVM you choose on the desktop today.
The SubstrateVM is the AOT compiler for Graal.
And many commercial JVMs do offer AOT compilation.
Also, .NET has had AOT/JIT since the very beginning. And now static compilation is coming as well.
On ARM? Last time I checked, OpenJDK doesn't even have JIT compilation on ARM, it just interprets the bytecode.
Well, at least the closed source JDK has it. As many other commercial JVMs.
As for AOT, it was referenced at Java ONE, Java Language Summit and Øredev 2014.