X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=config.h;h=74c0c3516bfdb7367ef2daedb81798c7be58a74d;hp=891dfd7f7a02dacec02ff339a0ff2bffeaa58fcc;hb=edf082882ea7a2d27d3a3322a84e42b040f186a4;hpb=c3ad6c109b0043a010838e77e2573aa820072820 diff --git a/config.h b/config.h index 891dfd7f..74c0c351 100644 --- 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.*/ @@ -27,22 +27,18 @@ #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() */ -#define USE_MPROTECT_SNAPSHOT 2 - /** Size of signal stack */ #define SIGSTACKSIZE 65536 /** Page size configuration */ #define PAGESIZE 4096 +#define TLS 1 + /** Thread parameters */ /* Size of stack to allocate for a thread. */ @@ -54,4 +50,17 @@ /** Enable debugging assertions (via ASSERT()) */ #define CONFIG_ASSERT +/** Enable mitigations against fork handlers that call into locks... */ +#define FORK_HANDLER_HACK + +/** Enable smart fuzzer */ +#define NEWFUZZER + +/** Define semantics of volatile memory operations. */ +#define memory_order_volatile_load memory_order_acquire +#define memory_order_volatile_store memory_order_release + +//#define memory_order_volatile_load memory_order_relaxed +//#define memory_order_volatile_store memory_order_relaxed + #endif