diff vmalloc.h @ 102:def70e32cf2c

Malloc with easy shave off
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 03 Aug 2011 13:23:32 +0200
parents ca154ebe2b6c
children 62c59f2ac9f1
line diff
     1.1 --- a/vmalloc.h	Tue Aug 02 15:44:28 2011 +0200
     1.2 +++ b/vmalloc.h	Wed Aug 03 13:23:32 2011 +0200
     1.3 @@ -18,6 +18,8 @@
     1.4  #define SMALL_CHUNK_COUNT 4
     1.5  #define LOWER_BOUND 128
     1.6  #define CHUNK_INCREASE_RATE 1.25
     1.7 +#define MAX_SMALL_CHUNKS 20
     1.8 +#define SMALL_CHUNKS_ALLOCATION 5
     1.9  
    1.10  #define LOG54 0.096910013
    1.11  #define LOG128 2.10720997
    1.12 @@ -38,7 +40,9 @@
    1.13   struct MallocArrays
    1.14   {
    1.15       MallocProlog **smallChunks;
    1.16 +     uint32       smallChunkCount[SMALL_CHUNK_COUNT];
    1.17       MallocProlog **bigChunks;
    1.18 +     void         *memSpace;
    1.19       uint32       containerCount;
    1.20   };
    1.21   //MallocArrays
    1.22 @@ -74,6 +78,6 @@
    1.23  VMS_ext__create_free_list();
    1.24  
    1.25  void
    1.26 -VMS_ext__free_free_list( MallocProlog *freeListHead );
    1.27 +VMS_ext__free_free_list(MallocArrays *freeLists );
    1.28  
    1.29  #endif
    1.30 \ No newline at end of file