Changeset: 2dcfeb77647c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2dcfeb77647c
Modified Files:
        configure.ag
Branch: Jul2012
Log Message:

On Solaris we want to use libumem or mtmalloc, so check for those.
On Solaris there are lots of malloc implementations.  According to
umem_alloc(3MALLOC):
         ·  The malloc(3C), bsdmalloc(3MALLOC), and malloc(3MALLOC)  functions
            have no support for concurrency. The libumem and mtmalloc(3MALLOC)
            functions support concurrent allocations.

         ·  The bsdmalloc(3MALLOC) functions afford better performance but are
            space-inefficient.

         ·  The  malloc(3MALLOC) functions are space-efficient but have slower
            performance.

         ·  The standard,  fully  SCD-compliant  malloc(3C)  functions  are  a
            trade-off between performance and space-efficiency.

         ·  The  mtmalloc(3MALLOC) functions provide fast, concurrent malloc()
            implementations that are not space-efficient.

         ·  The  libumem  functions  provide  a  fast,  concurrent  allocation
            implementation  that  in  most  cases is more space-efficient than
            mtmalloc(3MALLOC).
So we want libumem if available, or else mtmalloc.


diffs (14 lines):

diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -1759,7 +1759,9 @@ AC_CHECK_LIB(m, sqrt, [ MATH_LIBS="-lm" 
 AC_SUBST(MATH_LIBS)
 
 MALLOC_LIBS=""
-AC_CHECK_LIB(malloc, malloc, [ MALLOC_LIBS="-lmalloc" ] )
+AC_CHECK_LIB(umem, malloc, [ MALLOC_LIBS="-lumem" ],
+       AC_CHECK_LIB(mtmalloc, malloc, [ MALLOC_LIBS="-lmtmalloc" ],
+               AC_CHECK_LIB(malloc, malloc, [ MALLOC_LIBS="-lmalloc" ] )))
 AC_SUBST(MALLOC_LIBS)
 
 KVM_LIBS=""
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to