mallocx.c)
set(LIBS)
-option(enable_threads "TODO" NO)
+option(enable_threads "TODO" OFF)
if (enable_threads)
find_package(Threads REQUIRED)
message("Thread Model: ${CMAKE_THREAD_LIBS_INIT}" )
add_definitions("-DGC_ATOMIC_UNCOLLECTABLE")
endif()
-option(enable_gc_debug "Support for pointer back-tracing" NO)
+option(enable_gc_debug "Support for pointer back-tracing" OFF)
if (enable_gc_debug)
add_definitions("-DDBG_HDRS_ALL -DKEEP_BACK_PTRS")
if (HOST MATCHES ia64-.*-linux.*|i586-.*-linux.*|i686-.*-linux.*|x86-.*-linux.*|x86_64-.*-linux.*)
endif()
endif(enable_gc_debug)
-option(enable_redirect_malloc "Redirect malloc and friends to GC routines" NO)
+option(enable_redirect_malloc "Redirect malloc and friends to GC routines" OFF)
if (enable_redirect_malloc)
if (enable_gc_debug)
add_definitions("-DREDIRECT_MALLOC=GC_debug_malloc_replacement")
add_definitions("-DGC_USE_DLOPEN_WRAP")
endif(enable_redirect_malloc)
-option(enable_mmap "Use mmap instead of sbrk to expand the heap" NO)
+option(enable_mmap "Use mmap instead of sbrk to expand the heap" OFF)
option(enable_munmap "Return page to the OS if empty for N collections" ON)
if (enable_munmap)
add_definitions("-DGC_DONT_REGISTER_MAIN_STATIC_DATA")
endif()
-option(enable_large_config "Optimize for large heap or root set" NO)
+option(enable_large_config "Optimize for large heap or root set" OFF)
if (enable_large_config)
add_definitions("-DLARGE_CONFIG")
endif()
-option(enable_gc_assertions "Enable collector-internal assertion checking" NO)
+option(enable_gc_assertions "Enable collector-internal assertion checking" OFF)
if (enable_gc_assertions)
add_definitions("-DGC_ASSERTIONS")
endif()
add_definitions("-DGC_NO_THREADS_DISCOVERY")
endif()
-option(enable_checksums "Report erroneously cleared dirty bits" NO)
+option(enable_checksums "Report erroneously cleared dirty bits" OFF)
if (enable_checksums)
if (enable_munmap OR enable_threads)
message("CHECKSUMS not compatible with USE_MUNMAP or threads")