|
@@ -11,6 +11,7 @@ option(WITH_ADAPTIVITY "Build with adaptivity" OFF)
|
|
option(WITH_STATIC_LIB "Build a static library" OFF)
|
|
option(WITH_STATIC_LIB "Build a static library" OFF)
|
|
option(WITH_SHARED_LIB "Build a shared library" OFF)
|
|
option(WITH_SHARED_LIB "Build a shared library" OFF)
|
|
option(WITH_DOC "Build with documentation" OFF)
|
|
option(WITH_DOC "Build with documentation" OFF)
|
|
|
|
+option(COALESCE_AFTER_SPLIT "Try to coalesce blocks after split" OFF)
|
|
|
|
|
|
option(WITH_SYSTEM_CALLS "Choose what system calls can be used, options are: none, sbrk, mmap" "none")
|
|
option(WITH_SYSTEM_CALLS "Choose what system calls can be used, options are: none, sbrk, mmap" "none")
|
|
option(SORT_POLICY "Choose the block sorting policy, options are: lifo, fifo, size, address")
|
|
option(SORT_POLICY "Choose the block sorting policy, options are: lifo, fifo, size, address")
|
|
@@ -76,10 +77,11 @@ if (LINUXTEST)
|
|
set(FIT_PERCENTAGE 0.6f)
|
|
set(FIT_PERCENTAGE 0.6f)
|
|
set(HAVE_LOCKS ON)
|
|
set(HAVE_LOCKS ON)
|
|
set(WITH_EXAMPLES ON)
|
|
set(WITH_EXAMPLES ON)
|
|
- set(WITH_COALESCING "never")
|
|
+ set(WITH_COALESCING "fixed")
|
|
set(MAX_COALESCE_SIZE 60000)
|
|
set(MAX_COALESCE_SIZE 60000)
|
|
- set(WITH_SPLITTING "never")
|
|
+ set(WITH_SPLITTING "fixed")
|
|
set(MIN_SPLITTING_SIZE 300)
|
|
set(MIN_SPLITTING_SIZE 300)
|
|
|
|
+ set(COALESCE_AFTER_SPLIT ON)
|
|
set(WITH_SHARED_LIB ON)
|
|
set(WITH_SHARED_LIB ON)
|
|
set(WITH_STATIC_LIB ON)
|
|
set(WITH_STATIC_LIB ON)
|
|
set(WITH_REALLOC ON)
|
|
set(WITH_REALLOC ON)
|
|
@@ -87,6 +89,15 @@ if (LINUXTEST)
|
|
set(WITH_DOC ON)
|
|
set(WITH_DOC ON)
|
|
endif (LINUXTEST)
|
|
endif (LINUXTEST)
|
|
|
|
|
|
|
|
+if(COALESCE_AFTER_SPLIT)
|
|
|
|
+ if(WITH_SPLITTING STREQUAL "never")
|
|
|
|
+ message(FATAL_ERROR "You have to set WITH_SPLITTING to fixed or variable if you want to coalesce after split.")
|
|
|
|
+ endif(WITH_SPLITTING STREQUAL "never")
|
|
|
|
+ if(WITH_COALESCING STREQUAL "never")
|
|
|
|
+ message(FATAL_ERROR "You have to set WITH_COALESCING to fixed or variable if you want to coalesce after split.")
|
|
|
|
+ endif(WITH_COALESCING STREQUAL "never")
|
|
|
|
+endif(COALESCE_AFTER_SPLIT)
|
|
|
|
+
|
|
if(BLOCKS_ORGANIZATION STREQUAL "dll")
|
|
if(BLOCKS_ORGANIZATION STREQUAL "dll")
|
|
set(BLOCKS_IN_DLL ON)
|
|
set(BLOCKS_IN_DLL ON)
|
|
else(BLOCKS_ORGANIZATION STREQUAL "dll")
|
|
else(BLOCKS_ORGANIZATION STREQUAL "dll")
|