Reducing overhead from refcounting
Reducing overhead from refcounting
Posted Sep 2, 2024 18:15 UTC (Mon) by kmeyer (subscriber, #50720)Parent article: A review of file descriptor memory safety in the kernel
It sounds like many refcount adjustment sites could instead be good candidates for hazard pointer protection. This would lower the coordination overhead required to protect frequent accesses, at some slight delay to destruction. Hazard pointers might also make it possible to eliminate some of the ad-hoc "did we adjust the refcount or not?" logic for single-thread processes, etc.