TY - JOUR
T1 - ThreadScan
T2 - Automatic and scalable memory reclamation
AU - Alistarh, Dan
AU - Leiserson, William
AU - Matveev, Alexander
AU - Shavit, Nir
N1 - Publisher Copyright:
© 2018 ACM.
PY - 2018/9
Y1 - 2018/9
N2 - The concurrent memory reclamation problem is that of devising a way for a deallocating thread to verify that no other concurrent threads hold references to a memory block being deallocated. To date, in the absence of automatic garbage collection, there is no satisfactory solution to this problem; existing tracking methods like hazard pointers, reference counters, or epoch-based techniques like RCU are either prohibitively expensive or require significant programming expertise to the extent that implementing them efficiently can be worthy of a publication. None of the existing techniques are automatic or even semi-automated. In this article, we take a new approach to concurrent memory reclamation. Instead of manually tracking access to memory locations as done in techniques like hazard pointers, or restricting shared accesses to specific epoch boundaries as in RCU, our algorithm, called ThreadScan, leverages operating system signaling to automatically detect which memory locations are being accessed by concurrent threads. Initial empirical evidence shows that ThreadScan scales surprisingly well and requires negligible programming effort beyond the standard use of Malloc and Free.
AB - The concurrent memory reclamation problem is that of devising a way for a deallocating thread to verify that no other concurrent threads hold references to a memory block being deallocated. To date, in the absence of automatic garbage collection, there is no satisfactory solution to this problem; existing tracking methods like hazard pointers, reference counters, or epoch-based techniques like RCU are either prohibitively expensive or require significant programming expertise to the extent that implementing them efficiently can be worthy of a publication. None of the existing techniques are automatic or even semi-automated. In this article, we take a new approach to concurrent memory reclamation. Instead of manually tracking access to memory locations as done in techniques like hazard pointers, or restricting shared accesses to specific epoch boundaries as in RCU, our algorithm, called ThreadScan, leverages operating system signaling to automatically detect which memory locations are being accessed by concurrent threads. Initial empirical evidence shows that ThreadScan scales surprisingly well and requires negligible programming effort beyond the standard use of Malloc and Free.
KW - Concurrent data structures
KW - Lock-based data structures
KW - Lock-free data structures
KW - Memory reclamation
UR - http://www.scopus.com/inward/record.url?scp=85054890115&partnerID=8YFLogxK
U2 - 10.1145/3201897
DO - 10.1145/3201897
M3 - ???researchoutput.researchoutputtypes.contributiontojournal.article???
AN - SCOPUS:85054890115
SN - 2329-4949
VL - 4
JO - ACM Transactions on Parallel Computing
JF - ACM Transactions on Parallel Computing
IS - 4
M1 - 18
ER -