Hooking into GC

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 29 03:07:19 PDT 2016


On Wednesday, 29 June 2016 at 02:18:27 UTC, MMJones wrote:
> I read somewhere that one can modify the D files from phobos 
> and runtime to supply a stub for the GC. I would like to add 
> some logging features to the GC.
>
> Does this not require one to recompile phobos? I figured the 
> source code was just for debugging?
>
> I'm curious if I can really get away with modifying the source 
> code in dmd2's dir and it will actually work. I guess I could 
> try but I don't wanna go mess with it if it's not going to do 
> anything.

Going to be released with 2.072.0
https://github.com/dlang/druntime/pull/1581


More information about the Digitalmars-d-learn mailing list