JEPs proposed to target JDK 9 (2016/10/19)
John Rose
john.r.rose at oracle.com
Wed Oct 19 22:25:15 UTC 2016
On Oct 19, 2016, at 3:11 PM, Vitaly Davidovich <vitalyd at gmail.com> wrote:
>
> I think David must be talking about stripping the binary to just the set of methods known to be used - think of internal linkage, like static functions in C which may just get inlined and aren't present in the binary. So in Java AOT, closest parallel would be a private method but of course that's callable at runtime, so I don't see how AOT can just omit it entirely.
AOT supports deoptimization and re-JIT-ing, so it would be easy to omit methods from AOT output, and just use interpreter or JIT to handle the execution.
AOT could do stuff like tree shaking (static call graph minimization) or enforcement of strong encapsulation, but it doesn't yet. It's early days for this technology.
— John
More information about the jdk9-dev
mailing list