[dmd-internals] Giving better static data limits to the GC

Leandro Lucarella luca at llucax.com.ar
Sun Aug 15 17:57:46 PDT 2010


I've created a bug report:
"Static data that must be scanned by the GC should be grouped"
http://d.puremagic.com/issues/show_bug.cgi?id=4650

For the lazy, here is a fragment of the bug report:
---
It would be nice if the compiler could group all the static that must
really be scanned (programs static variables) together and make its
limits available to the GC. It would be even nicer to leave static
variables that have no pointers out of that group, and even much more
nicer to create a pointer map like the one in the patch from bug 3463 to
allow precise heap scanning. That way the only memory in the program
that would have to be scanned conservatively will be the stack.
---

I wonder if this is even possible, and how much work would require in
that case. I did almost no DMD hacking but if this is not too hard
and/or if someone can give me some pointers on how to do it I'd like to
give it a try. I suspect it could have a very significant positive
impact in the GC performance.


Thanks.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Karma police
I've given all I can,
it's not enough,
I've given all I can
but we're still on the payroll.


More information about the dmd-internals mailing list