Changeset 187


Ignore:
Timestamp:
Nov 1, 2008, 7:32:27 PM (16 years ago)
Author:
katerina
Message:

Fix inconsistent chunksize on 64bit systems (ticket #125).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dnmalloc.c

    r180 r187  
    18701870#define mem2chunk(mem) (hashtable_lookup(mem))
    18711871
    1872 /* The smallest possible chunk */
    1873 #define MIN_CHUNK_SIZE        16
     1872/* The smallest possible chunk      */
     1873/* #define MIN_CHUNK_SIZE        16 */
     1874#if (SIZEOF_UNSIGNED_LONG == 8) || defined(__arch64__) || defined(__ia64__) || defined(__x86_64__) || defined(__LP64__) || defined(__64BIT__) || defined(_LP64) || defined(_M_IA64) || (defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64))
     1875#  define MIN_CHUNK_SIZE 32
     1876#else
     1877#  define MIN_CHUNK_SIZE 16
     1878#endif
    18741879
    18751880/* The smallest size we can malloc is an aligned minimal chunk */
Note: See TracChangeset for help on using the changeset viewer.