diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-08 20:06:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-08 20:06:37 -0700 |
commit | 06354eda6092add55034c692bd65734a61083e8b (patch) | |
tree | 2cc79d36f916c220b3bc449cba4d3ab602f534c4 /src | |
parent | 17cc630b9b3c7954dcf85a0d68f69615fce07945 (diff) |
fix dlmalloc speed regressionllvm-svn-pre-3.0llvm-svn-backup
Diffstat (limited to 'src')
-rw-r--r-- | src/dlmalloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dlmalloc.c b/src/dlmalloc.c index 864117dd..aa37dc0d 100644 --- a/src/dlmalloc.c +++ b/src/dlmalloc.c @@ -1,7 +1,9 @@ + #define __THROW #define __attribute_malloc__ #define __wur + /* This is a version (aka dlmalloc) of malloc/free/realloc written by Doug Lea and released to the public domain, as explained at @@ -592,7 +594,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP #define MMAP_CLEARS 1 #endif /* MMAP_CLEARS */ #ifndef HAVE_MREMAP -#if linux +#ifdef linux #define HAVE_MREMAP 1 #else /* linux */ #define HAVE_MREMAP 0 |