On Sunday, 18 December 2011 at 23:28:16 UTC, Andrei Alexandrescu
wrote:
I'm not sure. I seem to recall discussions with pathological
cases when large regions of memory were scanned for no good
reason.
We need to factor the frequency of such cases, and their impact.
Also, a more precise GC isn't the only solution to such problems
- one alternative would be readily-available tools to diagnose
memory problems. For example, Diamond (the toolkit I've written
for D1) can display a graphical memory map with scannable areas
being highlighted. It also allows you to easily find the pointer
chain that prevents your object from being collected.
I ordered the GC book :o).
A lot of GC research seems to be tied to VMs. D is a bit of an
exception...