lock-free memory reclamation with 64bit pointers
Posted
by JDonner
on Stack Overflow
See other posts from Stack Overflow
or by JDonner
Published on 2009-06-30T05:35:08Z
Indexed on
2010/05/24
18:01 UTC
Read the original article
Hit count: 233
Herlihy and Shavit's book (The Art of Multiprocessor Programming) solution to memory reclamation uses Java's AtomicStampedReference<T>;
.
To write one in C++ for the x86_64 I imagine requires at least a 12 byte swap operation - 8 for a 64bit pointer and 4 for the int.
Is there x86 hardware support for this and if not, any pointers on how to do wait-free memory reclamation without it?
© Stack Overflow or respective owner