Branch: Tag:

2006-08-05

2006-08-05 21:00:48 by Martin Stjernholm <mast@lysator.liu.se>

Added Doug Lea's malloc, use --enable-dlmalloc to enable it. It's enabled
by default on Windows since the OS malloc sucks.

Rev: src/acconfig.h:1.153
Rev: src/configure.in:1.988
Rev: src/dmalloc.h:1.60
Rev: src/malloc.c:1.1
Rev: src/pike_memory.c:1.180

1: - AC_REVISION("$Id: configure.in,v 1.987 2006/08/04 23:22:30 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.988 2006/08/05 21:00:40 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
1332:   dnl AC_ARG_WITH(unsigned-long-long-int, MY_DESCR([--with-unsigned-long-longint],   dnl [use short native type int (EXPERIMENTAL)]))    + AC_ARG_ENABLE(dlmalloc, MY_DESCR([--enable-dlmalloc], +  [use Doug Leas malloc implementation instead of system malloc]), +  [], [test "$pike_cv_sys_os" = Windows_NT && enable_dlmalloc=yes]) + # dlmalloc is enabled by default on windows since the OS heap manager + # Sucketh. (Well, it's possible to enable a "low-fragmentation heap" + # but it only works for blocks up to 16kb.) + if test "x$enable_dlmalloc" = xyes; then +  EXTRA_OBJS="$EXTRA_OBJS malloc.o" +  AC_DEFINE(USE_DL_MALLOC) + fi +    MY_AC_ARG_WITH(cleanup-on-exit,    MY_DESCR([--with-cleanup-on-exit],    [Do full cleanup at exit to detect leaks better.]),
2283:    # MinGW system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.987 2006/08/04 23:22:30 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.988 2006/08/05 21:00:40 mast Exp $.   # MinGW-version. Do NOT edit.   posix_name="`cat`"   posix_prefix="/"
2321:    # Native POSIX system.    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.987 2006/08/04 23:22:30 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.988 2006/08/05 21:00:40 mast Exp $.   # POSIX-version. Do NOT edit.   cat   EOF
2330:    # rntcl-style    cat <<\EOF   #!/bin/sh - # Automatically generated by $Id: configure.in,v 1.987 2006/08/04 23:22:30 mast Exp $. + # Automatically generated by $Id: configure.in,v 1.988 2006/08/05 21:00:40 mast Exp $.   # RNTCL-version. Do NOT edit.   sed -e "$PIKE_PATH_TRANSLATE"   EOF