revert commit
[c11tester.git] / config.h
index afbac874d785b3a31b7af13a7c284f30ac51ff2f..c276bd03ce00715233a5be9dc6792e81d00aef47 100644 (file)
--- a/config.h
+++ b/config.h
@@ -7,13 +7,13 @@
 
 /** Turn on debugging. */
 /*             #ifndef CONFIG_DEBUG
              #define CONFIG_DEBUG
              #endif
+ #define CONFIG_DEBUG
+ #endif
 
              #ifndef CONFIG_ASSERT
              #define CONFIG_ASSERT
              #endif
-*/
+ #ifndef CONFIG_ASSERT
+ #define CONFIG_ASSERT
+ #endif
+ */
 
 /** Turn on support for dumping cyclegraphs as dot files at each
  *  printed summary.*/
 #else
 #define BIT48 0
 #endif
-#endif /* BIT48 */
+#endif /* BIT48 */
 
 /** Snapshotting configurables */
 
-/** 
+/**
  * If USE_MPROTECT_SNAPSHOT=2, then snapshot by tuned mmap() algorithm
  * If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect()
  * If USE_MPROTECT_SNAPSHOT=0, then snapshot by using fork() */
@@ -43,6 +43,8 @@
 /** Page size configuration */
 #define PAGESIZE 4096
 
+#define TLS 1
+
 /** Thread parameters */
 
 /* Size of stack to allocate for a thread. */
@@ -54,4 +56,7 @@
 /** Enable debugging assertions (via ASSERT()) */
 #define CONFIG_ASSERT
 
+/** Enable mitigations against fork handlers that call into locks...  */
+#define FORK_HANDLER_HACK
+
 #endif