Re: memory allocations.
- From: Soeren Sandmann <sandmann daimi au dk>
- To: Havoc Pennington <hp redhat com>
- Cc: iain <iain ximian com>, gnome-hackers gnome org
- Subject: Re: memory allocations.
- Date: 27 Feb 2002 19:04:44 +0100
Havoc Pennington <hp redhat com> writes:
> iain <iain ximian com> writes:
> > I'm not sure where this could go, possibly in g_thread_init add a call
> > to g_mem_set_vtable which switches to the faster malloc?
> >
> > Comments?
>
> That would make malloc unthreadsafe as soon as you turned on
> threading. ;-) Maybe not a great idea...
Presumably it should be the other way around. As default make
g_malloc() fast and thread-unsafe. On g_thread_init() switch to the
slow, but thread-safe one. I doubt it'll matter much, though.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]