X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=config.h;h=ed0b6bac2e62e02043570503f552a73e4f028ffd;hb=1c3a286b9bf208163f478abaf2fe5b44d21d9823;hp=891dfd7f7a02dacec02ff339a0ff2bffeaa58fcc;hpb=44118f596eb7cd9b4b0b5037fbbf958db001accc;p=c11tester.git diff --git a/config.h b/config.h index 891dfd7f..ed0b6bac 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,15 +27,15 @@ #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 +#define USE_MPROTECT_SNAPSHOT 0 /** Size of signal stack */ #define SIGSTACKSIZE 65536 @@ -54,4 +54,7 @@ /** Enable debugging assertions (via ASSERT()) */ #define CONFIG_ASSERT +/** Enable mitigations against fork handlers that call into locks... */ +#define FORK_HANDLER_HACK + #endif