[armedbear-devel] Question about calling Java

dmiles@users.sourceforge.net logicmoo at gmail.com
Thu Feb 4 15:59:22 UTC 2010


On Thu, Feb 4, 2010 at 7:52 AM, Alessio Stalla <alessiostalla at gmail.com>wrote:

>
>
> Afaik, declaring methods to be final has little impact on performance
> with recent JVMs. HotSpot is able to infer if a method can or not be
> overridden and perform the appropriate optimizations. If later on a
> class is dynamically loaded that overrides an optimized method,
> HotSpot will "unoptimize" it.
>
>

What I meant by final wasn't about final modifiers on methods.

What i refer to is when at compile time there is only one possible call
site.

for instance (jcall "toString" (jnew "java.lang.Integer" 1))

the emitted bytecode can  invokevirtual "java.lang.Integer" "toString" ref0;





>  _______________________________________________
> armedbear-devel mailing list
> armedbear-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/armedbear-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20100204/02d47069/attachment.html>


More information about the armedbear-devel mailing list