X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=config.h;h=ed0b6bac2e62e02043570503f552a73e4f028ffd;hp=55093637a175186bddebb46b9a37b2f3a5117666;hb=cae6e82ba84ee7f3067f1279930452ae1fb66914;hpb=22bc505e43e7215a70b2ae362e0b4bbd08c09ddb diff --git a/config.h b/config.h index 55093637..ed0b6bac 100644 --- a/config.h +++ b/config.h @@ -7,9 +7,13 @@ /** Turn on debugging. */ /* #ifndef CONFIG_DEBUG - #define CONFIG_DEBUG - #endif -*/ + #define CONFIG_DEBUG + #endif + + #ifndef CONFIG_ASSERT + #define CONFIG_ASSERT + #endif + */ /** Turn on support for dumping cyclegraphs as dot files at each * printed summary.*/ @@ -23,16 +27,18 @@ #else #define BIT48 0 #endif -#endif /* BIT48 */ +#endif /* BIT48 */ /** Snapshotting configurables */ -/** If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect() +/** + * 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 0 /** Size of signal stack */ -#define SIGSTACKSIZE 32768 +#define SIGSTACKSIZE 65536 /** Page size configuration */ #define PAGESIZE 4096 @@ -42,5 +48,13 @@ /* Size of stack to allocate for a thread. */ #define STACK_SIZE (1024 * 1024) +/** How many shadow tables of memory to preallocate for data race detector. */ +#define SHADOWBASETABLES 4 + +/** Enable debugging assertions (via ASSERT()) */ +#define CONFIG_ASSERT + +/** Enable mitigations against fork handlers that call into locks... */ +#define FORK_HANDLER_HACK #endif