Re: GMemVTable broken

On Sat, 2015-06-27 at 05:38 +0200, Alexander Larsson wrote:
So, I just tried to use the memory profiler in glib, and I crashes
really early because the gobject constructor (gobject_init_ctor) 
g_malloc before main() is reached.

This means g_mem_set_vtable() is impossible to use. I don't 
think this is all that bad. Honestly we should never have made it a
vtable (one extra vfunc per malloc...) and instead do memory 
etc the "normal" way, i.e. LD_PRELOAD something with malloc
interceptors. Maybe we should just remove all this code and keep
g_mem_set_vtable as a dummy function that prints a deprecation 

I think.

Attachment: signature.asc
Description: This is a digitally signed message part

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