Here’s a great article on Read-Copy-Update that goes into the magic of Linux sys_membarrier and Windows FlushProcessWriteBuffers for not only lock-free but even atomic-free “highly asymmetric synchronization” as is needed for garbage collectors.
-
-
I didn't know you read LWN. One of my favorites sites, the technical articles there are very high quality. AFAIU this is needed for memory reclamation. I wonder if discoverability of pointers (without which you cannot move objects) isn't a bigger performance problem for C++ GC.
-
On Skylake the smart pointer copy constructor and assignment operator for my lock-free nonblocking garbage collector cost 3.5 cycles, vs 0.25 for naked pointers, and 20 for atomic reference-counted std::shared_ptr.
- 3 more replies
New conversation -
-
-
Glad you like it!
End of conversation
New conversation
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
