On Monday, 28 January 2013 at 16:26:29 UTC, Paulo Pinto wrote: > This is not true for current native compilers and JVMs. > > If escape analysis can prove the object does not leave scope, > new actually allocates on the stack. > Modern can even speculate that an object will not leave scope, allocate it on stack, and move it on heap if it escape !