thanks for yet another clear explanation of a complex topic
thanks for yet another clear explanation of a complex topic
Posted Jul 28, 2026 20:07 UTC (Tue) by alison (subscriber, #63752)Parent article: Hazard pointers for the kernel
The explanation suggests that the new feature is built on top of sequence locks (for hazptr_synchronize()), cleanup.h (for freeing the context) and cmpxchg (for updating and perhaps reading the slots). The kernel has accrued clever infrastructure which makes all kinds of cool new features easier to implement.
The fact that C++ has adopted hazard pointers before the kernel (https://en.cppreference.com/Template:cpp/synopsis/hazard_...) is surprising. Presumably McKenney et al. worked first on the C++ proposal given the ISO committee's slower release cycle.
