Re: [glib] malloc and bdwgc

There are many libraries that can call malloc before main().

On Thu, Jan 7, 2016 at 2:10 AM, 张海 <dreaming in code zh gmail com> wrote:
I'm using glib without the whole GObject system and reference counting
mechanism, and I'd like to integrate bdwgc
( because of the complexity of my

I've read about using GMemVTable to redirect memory allocation of glib
to GC_malloc, however as in ,
such mechanism no longer works, and even more unfortunately it says
glib allocates memory before main() so it seems that I'm even unable
to hook to malloc in time as in

Can I use bdwgc with glib >= 2.4.6? If so, how can I achieve that correctly?
gtk-devel-list mailing list
gtk-devel-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]