Fix bug by only putting reads or writes in objthrdmap
[c11tester.git] / config.h
1 /** @file config.h
2  * @brief Configuration file.
3  */
4
5 #ifndef CONFIG_H
6 #define CONFIG_H
7
8 /** Turn on debugging. */
9 /*              #ifndef CONFIG_DEBUG
10  #define CONFIG_DEBUG
11  #endif
12
13  #ifndef CONFIG_ASSERT
14  #define CONFIG_ASSERT
15  #endif
16  */
17
18 /** Turn on support for dumping cyclegraphs as dot files at each
19  *  printed summary.*/
20 #define SUPPORT_MOD_ORDER_DUMP 0
21
22 /** Do we have a 48 bit virtual address (64 bit machine) or 32 bit addresses.
23  * Set to 1 for 48-bit, 0 for 32-bit. */
24 #ifndef BIT48
25 #ifdef _LP64
26 #define BIT48 1
27 #else
28 #define BIT48 0
29 #endif
30 #endif  /* BIT48 */
31
32 /** Snapshotting configurables */
33
34 /** Size of signal stack */
35 #define SIGSTACKSIZE 65536
36
37 /** Page size configuration */
38 #define PAGESIZE 4096
39
40 #define TLS 1
41
42 /** Thread parameters */
43
44 /* Size of stack to allocate for a thread. */
45 #define STACK_SIZE (1024 * 1024)
46
47 /** How many shadow tables of memory to preallocate for data race detector. */
48 #define SHADOWBASETABLES 4
49
50 /** Enable debugging assertions (via ASSERT()) */
51 #define CONFIG_ASSERT
52
53 /** Enable mitigations against fork handlers that call into locks...  */
54 #define FORK_HANDLER_HACK
55
56 #endif