Benchmarking Smalltalk on JVM

Mark Roos mroos at roos.com
Wed Feb 1 19:45:05 PST 2012


from Rémi

        if you know it will never escape,you should use an int directly.

Well I am trying to build a Smalltalk system which has no static types so
I have to box the ints. Since the code I showed was programmer entered I
need to stay with the boxes.

There are cases where the compiler generates the index code and there I do
use static ints if I can be sure they are not passed.  It does cause some
issues when I open a debugger on the stack so I may want to keep then 
boxed
anyway and thus the MutableInteger

mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20120201/6c623b15/attachment.html 


More information about the mlvm-dev mailing list