Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_witness.c
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
/* Define this to check for blessed mutexes */ | /* Define this to check for blessed mutexes */ | ||||
#undef BLESSING | #undef BLESSING | ||||
#ifndef WITNESS_COUNT | #ifndef WITNESS_COUNT | ||||
#define WITNESS_COUNT 1536 | #define WITNESS_COUNT 1536 | ||||
#endif | #endif | ||||
#define WITNESS_HASH_SIZE 251 /* Prime, gives load factor < 2 */ | #define WITNESS_HASH_SIZE 251 /* Prime, gives load factor < 2 */ | ||||
#define WITNESS_PENDLIST (2048 + MAXCPU) | #define WITNESS_PENDLIST (2048 + (MAXCPU * 4)) | ||||
/* Allocate 256 KB of stack data space */ | /* Allocate 256 KB of stack data space */ | ||||
#define WITNESS_LO_DATA_COUNT 2048 | #define WITNESS_LO_DATA_COUNT 2048 | ||||
/* Prime, gives load factor of ~2 at full load */ | /* Prime, gives load factor of ~2 at full load */ | ||||
#define WITNESS_LO_HASH_SIZE 1021 | #define WITNESS_LO_HASH_SIZE 1021 | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 991 Lines • Show Last 20 Lines |