Re: glib memory allocation problems
- From: Tim Janik <timj imendio com>
- To: Miklos Szeredi <miklos szeredi hu>
- Cc: jimis gmx net, Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: glib memory allocation problems
- Date: Tue, 15 May 2007 18:06:20 +0200 (CEST)
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]