Anyway, my question is to those who have a far better understanding of
this inner workings of Java than I is, can we actually expect
performance improvements in Java 6 on Leopard.
I understood the performance improvements were gained is register
allocation tricks down in the bowels of the VM. If this is the case,
is it part of the Java 6 spec and so can be expected in all
implementations of Java 6 - OR is it just the result of Sun's
implementation and so not necessarily carried over to other
implementations, eg. Apple's version.
-Brice
It depends on how much of Sun's implementation is used by Apple in
their implementation.
The platform spec doesn't talk about performance. It doesn't talk
about implementation details such as register allocation tricks in the
VM or even whether the bytecodes get compiled to machine code or
whether the bytecodes are simply interpreted.
Probably Apple is going to use Hotspot as the VM rather than writing
their own VM. Hotspot undergoes performance improvements and tuning
in every relase.
But Apple would be free to write their own VM.. just as they felt it
important to implement their own GUI system rather than reusing X11's
as has many other Unix vendors. If Apple were to write their own VM
then Hotspot improvements would not automatically be inherited by
Apple's VM.
- David Herron
The missing piece for me was that Apple would use (or currently users
as suggested) Sun's VM. I had just assumed Apple would have had to
implement the whole VM themselves, from the ground up...
Cheers Doug