Allocate memory using the garbage collector
DMD uses this to allocate closures:
void f(byte[24] x) { return () => x; // `x` is on stack, must be moved to heap to keep it alive }
number of bytes to allocate
pointer to sz bytes of free, uninitialized memory, managed by the GC.
See Implementation
Allocate memory using the garbage collector
DMD uses this to allocate closures: