Hooking the GC?

Vladimir Panteleev vladimir at thecybershadow.net
Tue Jan 4 02:12:17 PST 2011


On Tue, 04 Jan 2011 01:06:39 +0200, %u <wfunction at hotmail.com> wrote:

> It doesn't have to be at run-time, I can add code to the GC too. So  
> _d_newclass
> would be *almost* what I'm looking for, except that it doesn't work for  
> memory
> allocated using GC.malloc()... so I'd have to hook in multiple places I  
> guess.
> Thanks for the info.

_d_newclass invokes the GC's malloc downstream. It's just that at  
_d_newclass, you know the class typeinfo being allocated.

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list