Re:The D Garbage Collector
by bachmeier on Monday March 20, 2017 @01:50PM
(#13916170)
> a very slow and conservative stop the world Mark & Sweep, which runs at every allocation
It doesn't run on every allocation. It can only run during an allocation, but that doesn't mean it will, and it's hard to think of a standard use case in which it would run on every allocation. FTA:
"The first thing to understand about D’s garbage collector is that it only runs during allocation, and only if there is no memory available to allocate."
It doesn't run on every allocation. It can only run during an allocation, but that doesn't mean it will, and it's hard to think of a standard use case in which it would run on every allocation. FTA:
"The first thing to understand about D’s garbage collector is that it only runs during allocation, and only if there is no memory available to allocate."