From 733b1789c17ab4c6378ce0e9594f62dda1473ebb Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Thu, 1 Dec 2005 16:34:33 +0000 Subject: new slice allocator implementation. Thu Dec 1 17:32:46 2005 Tim Janik * 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]. --- configure.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index eb4497adc..fa2f964cb 100644 --- a/configure.in +++ b/configure.in @@ -523,6 +523,9 @@ AC_HEADER_STDC AC_FUNC_VPRINTF AC_FUNC_MMAP AC_FUNC_ALLOCA +AC_CHECK_FUNCS(posix_memalign) +AC_CHECK_FUNCS(memalign) +AC_CHECK_FUNCS(valloc) AC_CHECK_FUNCS(atexit on_exit) -- cgit v1.2.3