There are about 3 or 4 ways to make #hazardpointers #waitfree instead of merely ...
Joe Seigh @jwseigh@mastodon.social
There are about 3 or 4 ways to make #hazardpointers #waitfree instead of merely #lockfree. I had though Linux restartable sequences (RSEQ) couldn't be inlines but apparently they can. I did a quick and dirty perf rest and it looks like protect() runs 3x faster w/o that conditional branch. But this only works on Linux and you need asynchronous memory barriers.