3 ms·
Sure, but class loading only changes assumptions in one direction for example — in the aforementioned example it would cause only one deoptimization after which
by kaba0 4y ago
Sure, but class loading only changes assumptions in one direction for example — in the aforementioned example it would cause only one deoptimization after which the code won’t be worse off than the AOT compiled one. So the JIT case before class load may perform better, and afterwards will perform the same.
- pjmlp 4y agoClasses can also be unloaded. What JIT does definitely better is when coupled with PGO data that survives between execution sessions.