2018-09-07 06:17:22 +02:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2018-09-07 08:10:37 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2018-09-07 06:17:22 +02:00
|
|
|
#define WRITE_AFTER_FREE_CHECK true
|
2018-09-07 06:25:02 +02:00
|
|
|
#define SLOT_RANDOMIZE true
|
2018-09-07 06:33:51 +02:00
|
|
|
#define ZERO_ON_FREE true
|
2018-09-07 06:35:08 +02:00
|
|
|
#define SLAB_CANARY true
|
2018-10-06 21:36:03 +02:00
|
|
|
#define GUARD_SLABS_INTERVAL 1
|
2018-10-06 21:17:55 +02:00
|
|
|
#define GUARD_SIZE_DIVISOR 2
|
2018-10-12 21:03:59 +02:00
|
|
|
#define REGION_QUARANTINE_RANDOM_SIZE 128
|
|
|
|
#define REGION_QUARANTINE_QUEUE_SIZE 1024
|
2018-10-08 21:50:31 +02:00
|
|
|
#define REGION_QUARANTINE_SKIP_THRESHOLD (32 * 1024 * 1024)
|
2018-10-13 19:55:44 +02:00
|
|
|
#define FREE_SLABS_QUARANTINE_RANDOM_SIZE 32
|
2018-09-07 06:17:22 +02:00
|
|
|
|
|
|
|
#endif
|