Branch: Tag:

2013-10-09

2013-10-09 15:12:02 by Arne Goedeke <el@laramies.com>

block_allocator: reuse pages used by the gc

86:    VALGRIND_CHECK_MEM_IS_DEFINED(addr, bytes)      #ifdef VALGRIND_CREATE_MEMPOOL - # define PIKE_MEMPOOL_CREATE(a) VALGRIND_CREATE_MEMPOOL(a, 0, 0) - # define PIKE_MEMPOOL_ALLOC(a, p, l) VALGRIND_MEMPOOL_ALLOC(a, p, l) - # define PIKE_MEMPOOL_FREE(a, p, l) VALGRIND_MEMPOOL_FREE(a, p) + # define PIKE_MEMPOOL_CREATE(a) VALGRIND_CREATE_MEMPOOL(a, 0, 0) + # define PIKE_MEMPOOL_ALLOC(a, p, l) VALGRIND_MEMPOOL_ALLOC(a, p, l) + # define PIKE_MEMPOOL_FREE(a, p, l) VALGRIND_MEMPOOL_FREE(a, p) + # define PIKE_MEMPOOL_DESTROY(a) VALGRIND_DESTROY_MEMPOOL(a)   #else   /* somewhat functional alternatives to mempool macros */   # define PIKE_MEMPOOL_CREATE(a)   # define PIKE_MEMPOOL_ALLOC(a, p, l) PIKE_MEM_WO_RANGE(p, l) - # define PIKE_MEMPOOL_FREE(a, p, l) PIKE_MEM_NA_RANGE(p, l) + # define PIKE_MEMPOOL_FREE(a, p, l) PIKE_MEM_NA_RANGE(p, l) + # define PIKE_MEMPOOL_DESTROY(a)   #endif      #else /* !HAVE_VALGRIND_MACROS */
114:   #define PIKE_MEMPOOL_CREATE(a)   #define PIKE_MEMPOOL_ALLOC(a, p, l)   #define PIKE_MEMPOOL_FREE(a, p, l) + #define PIKE_MEMPOOL_DESTROY(a)      #endif /* !HAVE_VALGRIND_MACROS */