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
_______________________________________________
mlvm-dev mailing list
[email protected]
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev