|
|
|
|
|
by blakehaswell
1967 days ago
|
|
> If you actually don't need it (i. e., your hot methods are never overridden), then the JIT will trivially compile those "virtual" method calls as non-virtual ones. But isn't that the thrust of this article? Of course the JIT can optimise a monomorphic call-site. The question is, in reality, what percentage of the time will it be optimised for your users? |
|
https://docs.oracle.com/en/java/javase/13/docs/specs/man/jao...