Re: glib memory allocation problems



On Tue, 15 May 2007, Miklos Szeredi wrote:

I don't understand some things however, so here are some questions to glib devs:
1) Why the crash didn't occur when using G_SLICE=always-malloc?

Because only the gslice code used thread private data, the malloc()
code is thread safe without needing any initialization.

inside glib, there are many more places besides gslice that rely on
the program either being single threaded or calling g_thread_init.

Miklos

---
ciaoTJ



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