new slice allocator implementation.
authorTim Janik <timj@imendio.com>
Thu, 1 Dec 2005 16:34:33 +0000 (16:34 +0000)
committerTim Janik <timj@src.gnome.org>
Thu, 1 Dec 2005 16:34:33 +0000 (16:34 +0000)
commit733b1789c17ab4c6378ce0e9594f62dda1473ebb
tree3e8d953d07b8a5e06aaa1d06c3889ccd832a3329
parentd871f19c3074f37df65b6d304f4eacbe19c4b46c
new slice allocator implementation.

Thu Dec  1 17:32:46 2005  Tim Janik  <timj@imendio.com>

        * glib/gslice.[hc]: new slice allocator implementation.

        * tests/slice-test.c: added random slice allocation test.

        * glib/gthread.[hc]: removed newly added private thread mem API.

        * glib/gthreadinit.h:
        * glib/gmessages.c:
        * glib/gthread.c:
        * glib/gmem.c: divided glib threading initialisation into three phases,
        initialisation where private keys and messaging are not available (only
        needed by gmem.c), initialisation without messaging but private keys
        available (gslice.c, gmessage.c), and full fledged initialisers that
        server the rest of glib. initialisation functions got renamed to reflect
        the limitations of their corresponding phases.

        * glib/gmem.c: removed memchunk code, defer allocations to
        g_slice_* instead.

        * glib/gmem.[hc]: removed g_slice_* skeletons.

        * glib/glib.symbols: added g_slice_* symbols.

        * configure.in: check for availability of posix_memalign(3), memalign(3)
        and valloc(3).

        * glib/Makefile.am: added gslice.[hc].
16 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
configure.in
glib/Makefile.am
glib/glib.symbols
glib/gmem.c
glib/gmem.h
glib/gmessages.c
glib/gslice.c [new file with mode: 0644]
glib/gslice.h [new file with mode: 0644]
glib/gthread.c
glib/gthread.h
glib/gthreadinit.h
tests/Makefile.am
tests/slice-test.c [new file with mode: 0644]