@@ -1,6 +1,7 @@
option(HAVE_LOCKS "Build with POSIX locking mechanisms" ON)
option(WITH_EXAMPLES "Build with examples" OFF)
option(WITH_MEMORY_SPACE_AWARENESS "Build with memory space awareness" OFF)
+option(WITH_COALESCING "Build with coalescing support" OFF)
option(WITH_STATIC_LIB "Build a static library" OFF)
option(WITH_SHARED_LIB "Build a shared library" OFF)
option(WITH_DOC "Build with documentation" OFF)
@@ -11,5 +11,7 @@
#define MIN_FRAG_THRESHOLD 0.05
+#define WITH_COALESCING
+
#endif /* DMM_CONFIG_H */
@@ -32,7 +32,7 @@ void custom_ahfree(allocator_t *allocator, heap_t* heap, void *ptr) {
remove_block(ptr, heap->used_blocks_head);
#ifdef WITH_COALESCING
- ptr = coalesce(heap, ptr);
+ ptr = coalesce(ptr, heap);
#endif /* WITH_COALESCING */
// Check if the block could be put in a fixed list