4 ms·
> In Java, every custom type is a reference type. I'm not sure this is true in the actual native code produced by the JIT. HotSpot does autobox elimination.
by jashmatthews 9y ago
> In Java, every custom type is a reference type.
I'm not sure this is true in the actual native code produced by the JIT. HotSpot does autobox elimination.
- vitalyd 9y agoNo, it’s sadly true. EA may scalarize the allocation but this optimization falls apart very easily in Hotspot.