migrate per-thread magazine caches from single-thread scenario to first
authorTim Janik <timj@imendio.com>
Thu, 12 Jul 2007 15:07:52 +0000 (15:07 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 12 Jul 2007 15:07:52 +0000 (15:07 +0000)
commit964d75ebe37ba879d05fa1b27f06aed63e7106db
tree21f348d8629ef5ac2ff8213d8cd33ce0dfcf824c
parent64acb3186250ef53d64038aae1560dcaf76753d1
migrate per-thread magazine caches from single-thread scenario to first

Thu Jul 12 15:46:40 2007  Tim Janik  <timj@imendio.com>

        * glib/gslice.c: migrate per-thread magazine caches from single-thread
        scenario to first thread using GSlice after g_thread_init(); based on
        a patch by Tor Lillqvist, fixes #331853.
        removed warning about g_thread_init() being called after other glib
        functions (in particular g_slice* calls), because GSlice can cope
        with this now and the rest of glib is believed to cope as well.

        * tests/slice-threadinit.c: new test program which tests GSlice working
        across g_thread_init() calls.

svn path=/trunk/; revision=5629
ChangeLog
glib/gslice.c
tests/Makefile.am
tests/slice-threadinit.c [new file with mode: 0644]