Design and implementation of a fully transparent partial abort support for software transactional memory

被引:0
作者
Pellegrini, Alessandro [1 ]
Di Sanzo, Pierangelo [2 ]
Piccione, Andrea [3 ]
Quaglia, Francesco [1 ]
机构
[1] Univ Roma Tor Vergata, DICII, Rome, Italy
[2] Univ Aquila, DISIM, Laquila, Italy
[3] Sapienza Univ Rome, DIAG, Rome, Italy
关键词
partial abort; software transactional memory; static binary instrumentation; transactional memory; SIMULATION; MANAGEMENT; COMPILER; DYMELOR;
D O I
10.1002/spe.3134
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Software transactional memory (STM) provides synchronization support to ensure atomicity and isolation when threads access shared data in concurrent applications. With STM, shared data accesses are encapsulated within transactions automatically handled by the STM layer. Hence, programmers are not requested to use code-synchronization mechanisms explicitly, like locking. In this article, we present our experience in designing and implementing a partial abort scheme for STM. The objective of our work is threefold: (1) enabling STM to undo only part of the transaction execution in the case of conflict, (2) designing a scheme that is fully transparent to programmers, thus also allowing to run existing STM applications without modifications, and (3) providing a scheme that can be easily integrated within existing STM runtime environments without altering their internal structure. The scheme we designed is based on automated software instrumentation, which injects into the application capabilities to undo the required portions of transaction executions. Further, it can correctly undo also non-transactional operations executed on the stack and the heap during a transaction. This capability allows programmers to write transactional code without concerns about the side effects of aborted transactions on both shared and thread-private data. We integrated and evaluated our partial abort scheme within the TinySTM open-source library. We analyze the experimental results we achieved with common STM benchmark applications, focusing on the advantages and disadvantages of the proposed solutions for implementing our scheme's different components. Hence, we highlight the appropriate choices and possible solutions to improve partial abort schemes further.
引用
收藏
页码:2456 / 2475
页数:20
相关论文
共 50 条
[1]  
Adl-Tabatabai AR, 2006, ACM SIGPLAN NOTICES, V41, P26, DOI 10.1145/1133981.1133985
[2]  
[Anonymous], 1997, P 13 C UNC ART INT
[3]  
[Anonymous], 2009, P 4 ACM SIGPLAN WORK
[4]  
[Anonymous], 2010, P 2010 INT S PARALLE
[5]  
[Anonymous], 2013, P 2013 INT C HIGH PE
[6]  
[Anonymous], 2006, P WORKSHOP LANGUAGES
[7]  
Ansari M, 2008, LECT NOTES COMPUT SC, V5168, P719, DOI 10.1007/978-3-540-85451-7_77
[8]  
Ansari M, 2009, LECT NOTES COMPUT SC, V5409, P4
[9]  
Bader DA, 2005, LECT NOTES COMPUT SC, V3769, P465
[10]  
Bestavros A., 1995, VLDB '95. Proceedings of the 21st International Conference on Very Large Data Bases, P122