|
|
|
|
|
by lrossi
1966 days ago
|
|
Glib is OK except for the fact that it has a memory cache on top of that of malloc. This prevents tools like asan or valgrind from detecting memory related bugs. It caused my team a lot of grief, to the point that we regretted the choice of using glib in the first place. I am not sure why there is a memory cache in the first place. Malloc may have been slow in the 90s, but these days there is no reason to cache and reuse allocations. It’s also a major security risk, since it nullifies hardening measures from the standard library, as we have seen with openssl/heartbleed recently. |
|
https://developer.gnome.org/glib/stable/glib-running.html#G_...