What's the go with the GC these days?
Walter Bright
newshound2 at digitalmars.com
Sun Jan 6 06:57:40 UTC 2019
On 1/5/2019 8:34 PM, H. S. Teoh wrote:
> Of course, it's possible for Java compilers to optimize away some
> allocations if object lifetimes can be statically determined -- I don't
> know if any Java compilers actually do this.
They do. I forgot the jargon term for it, but they'll determine if the lifetime
does not escape the function scope, and allocate it on the stack instead of the
heap.
More information about the Digitalmars-d
mailing list