Re:Ahead-of-Time Compilation
by saynsedit on Saturday October 01, 2016 @12:48AM
(#12616548)
not sure why this isn't a transparent feature implemented via caching.
[ Parent
| on HN ]
Hotspot's JIT compiled code tends to be pretty specialized based on runtime profiling information, which may not necessarily be similar between different runs even the class itself hasn't changed, or (in an extreme case) even if none of the code has.
Some other JVMs (at least Azul's Zing) try to solve this by cache profiling information to speed up code generation.
I believe the ReadyNow technology used by Zing records what methods are compiled at which level, then trigger a compilation of those methods at start up. So you effectively use profiling information from the previous run to inform the next run of what the final target state is, allowing the warm up times to be dramatically reduced.
Re:Ahead-of-Time Compilation
by mike_hearn on Saturday October 01, 2016 @07:08AM
(#12617374)
It's explained in the talk "Java goes AOT":
https://www.youtube.com/watch?v=Xybzyv8qbOc
Basically they thought it'd de-opt too much. I'm not totally sure it's the case but they'd be the experts on that.