Implementing strong atomicity in software transactional memory
Abstract
A software transactional memory system is described which utilizes decomposed software transactional memory instructions as well as runtime optimizations to achieve efficient performance. The decomposed instructions allow a compiler with knowledge of the instruction semantics to perform optimizations which would be unavailable on traditional software transactional memory systems. Additionally, high-level software transactional memory optimizations are performed such as code movement around procedure calls, addition of operations to provide strong atomicity, removal of unnecessary read-to-update upgrades, and removal of operations for newly-allocated objects. During execution, multi-use header words for objects are extended to provide for per-object housekeeping, as well as fast snapshots which illustrate changes to objects. Additionally, entries to software transactional memory logs are filtered using an associative table during execution, preventing needless writes to the logs. Finally a garbage collector with knowledge of the software transactional memory system compacts software transactional memory logs during garbage collection.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 26.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for analyzing and modifying computer code to comprise atomic memory operations in a transactional memory system for memory operations contained outside of memory transactions, the method comprising: compiling computer code comprising memory transactions comprising atomic blocks of code; during compilation of the computer code comprising memory transactions comprising atomic blocks of code: identifying one or more non-transactional memory operations which access objects outside of memory transactions comprising atomic blocks of code; and augmenting an identified non-transactional memor
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 26 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- Adl-Tabatabai et al., "Compiler and Runtime Support for Efficient Software Transactional Memory," Proceedings of the 2006 ACM SIGPLAN Conference on Programming Language Design and Implementation, 2006, pp. 26-36.
- Agesen et al., "An Efficient Meta-Lock for Implementing Ubiguitous Synchronization", 30 pages, (Apr. 1999).
- Agrawal et al., "An Interprocedural Framework for Placement of Asynchronour I/O Operations," UMDTechnical Report CS-TR-3563 (1998), http://www.lib.umd.edu/drum/bitstream/1903/778/2/CS-TR-3563.pdf, retreived on Feb. 24, 2010, pp. 1-25.
- Agrawal et al., An Interprocedural Partial Redundancy Elilmination and its Application to Distributed Memory Compilation, Proceedings of the ACM SIGPLAN 1995 Conference on Programming Language Design and Implementation, 1995, pp. 258-269.
- Ananian et al., "Efficient Object-Based Software Transactions," Proceedings of the 2005 ACM OOPSLA Workshop on Synchronization and Concurrency in Object-Oriented Langues, SCOOL '05, Oct. 16, 2005, pp. 65-74.