4 ms·
> This document describes work to enable object stack allocation in .NET Core. > In .NET instances of reference types are allocated on the garbage-collected he
by OnlyOneCannolo 6y ago
> This document describes work to enable object stack allocation in .NET Core.
> In .NET instances of reference types are allocated on the garbage-collected heap.
> If the lifetime of an object is bounded by the lifetime of the allocating method, the allocation may be moved to the stack.
https://github.com/dotnet/runtime/blob/master/docs/design/coreclr/jit/object-stack-allocation.md https://github.com/dotnet/runtime/blob/master/docs/design/co...