Re:A JVM Does That? (2011) [pdf]
by _pmf_ on Friday July 08, 2016 @07:36AM
(#12054775)
The JIT has access to the actual run time class hierarchy and can devirtualize method calls. In C++, if a method is virtual, the system can never decide "oh, this method has only one implementation, so let's always call that" because it must statically assume multiple implementations to be present.
[ Parent
| on HN ]
There are no comments on this comment yet.