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

Leandro Lucarella luca at llucax.com.ar
Mon Aug 23 05:32:55 PDT 2010


Andrei Alexandrescu, el 22 de agosto a las 22:59 me escribiste:
> I'm thinking - it's been the hallmark of druntime (vs. Phobos1) for
> the longest time that it has a configurable GC. How about this -
> let's make the precise GC a custom collector. This would allow us to
> (a) compare the existing GC with the proposed GC and (b) tune
> druntime's details with a real-world alternate GC.
> 
> Is that all possible?

Absolutely, the GC I'm working on is as configurable as possible, at
startup-time via environment variables [1].

And since last night, a new configuration option was added, you can
choose between stop-the-world and concurrent mark phase 8-) [2].

That's why I think the pointer bitmasks generation should be added to
DMD, it doesn't affect the runtime, unless you explicitly use that
information, it doesn't mean you have to provide a precise scanning GC
by default.

[1] http://llucax.com.ar/blog/blog/post/-2c067531
[2] http://llucax.com.ar/blog/blog/post/-4c9dd5b5

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
No es malo que en la condición humana exista la mentira. Miente el púber
si quiere ponerla.
	-- Ricardo Vaporeso. Madrid, 1921.


More information about the dmd-internals mailing list