Make hazard pointers max_threads configurable at runtime.
hp implementation requires an object for each thread accessing a hazard pointer. previous implementation had a hardcoded HP_MAX_THREAD value of 128, which failed on machines with lots of CPU cores (named uses 3n threads). We make isc__hp_max_threads configurable at startup, with the value set to 4*named_g_cpus. It's also important for this value not to be too big as we do linear searches on a list.
This commit is contained in:
@@ -248,6 +248,7 @@ isc_hex_tobuffer
|
||||
isc_hex_totext
|
||||
isc_hp_clear
|
||||
isc_hp_destroy
|
||||
isc_hp_init
|
||||
isc_hp_protect
|
||||
isc_hp_protect_ptr
|
||||
isc_hp_protect_release
|
||||
|
||||
Reference in New Issue
Block a user