Hooking into GC

MMJones via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 29 07:41:48 PDT 2016


On Wednesday, 29 June 2016 at 10:07:19 UTC, Martin Nowak wrote:
> 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

How will this affect the trackallocs module? Will it break it, 
replace it? Essentially a merge of it? Should I hold off until 
2.072 or go ahead and use the stub. I only need monitoring, not 
replacement of the GC.


More information about the Digitalmars-d-learn mailing list