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

Leandro Lucarella luca at llucax.com.ar
Thu Aug 19 08:48:44 PDT 2010


Leandro Lucarella, el 15 de agosto a las 21:57 me escribiste:
> 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.

I know this is probably really low priority for DMD, but any answer
would be appreciated, even if it is something like "no idea how doable
it is, it would take time to think about it and is low priority" :)

Thanks.

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Y vos, me dijiste que soy, un abismo de silencio.
Será, porque vos no escuchas, que yo grito por dentro.


More information about the dmd-internals mailing list