summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2018-04-13 18:08:40 +0300
committerIvan Maidanski <ivmai@mail.ru>2018-04-13 18:08:40 +0300
commit7743ae0b545ee73ec7239785eae93cace232a76a (patch)
treed775950d4193300d8d9371886c7e1540e569cd01
parent2f6a867daf333388efba6319296327e759861310 (diff)
downloadbdwgc-7743ae0b545ee73ec7239785eae93cace232a76a.tar.gz
Turn on atomic uncollectable functionality by default (CMake)
* CMakeLists.txt (enable_atomic_uncollectable): New OPTION (on by default). * CMakeLists.txt [enable_atomic_uncollectable] (GC_ATOMIC_UNCOLLECTABLE): Define macro.
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 483941af..65e3e653 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,6 +160,11 @@ IF(enable_java_finalization)
ADD_DEFINITIONS("-DJAVA_FINALIZATION")
ENDIF(enable_java_finalization)
+OPTION(enable_atomic_uncollectable "Support for atomic uncollectible allocation" ON)
+IF(enable_atomic_uncollectable)
+ ADD_DEFINITIONS("-DGC_ATOMIC_UNCOLLECTABLE")
+ENDIF(enable_atomic_uncollectable)
+
OPTION(enable_gc_debug "Support for pointer back-tracing" NO)
IF(enable_gc_debug)
ADD_DEFINITIONS("-DDBG_HDRS_ALL -DKEEP_BACK_PTRS")