4 ms·
The goal is to prevent garbage collection from happening during fast path execution. So the program doesn't need to be literally allocation free, just free of h
by scott00 6y ago
The goal is to prevent garbage collection from happening during fast path execution. So the program doesn't need to be literally allocation free, just free of heap allocations during the steady state of the program. So heap allocations during the initialization phase are okay, as are stack allocations at any time. And the no heap allocations during steady state isn't as bad as it sounds, as using an object pool that has preallocated objects in it is usually a reasonable replacement.