Skip to content

Use atomics for the the iterators number of isc_hashmap_t

Arаm Sаrgsyаn requested to merge aram/isc_hasmap-iterators-use-atomics into main

This is a follow-up MR from #4328 (closed).

Concurrent threads can access a hashmap for reading by creating and then destroying an iterator, in which case the integer number of the active iterators is increased or decreased from different threads, introducing a data race. Use atomic operations to protect the variable.

Merge request reports