Removal of unnecessary read-to-update upgrades 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: 47 · Forward citations: 39.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for generating efficient software, the method comprising: during compilation for a software transactional memory system, locating an instruction to open a reference for reading which is known to be followed by a first instruction to open the reference for update during execution; substituting, for the instruction to open the reference for reading, a second instruction to open the reference for update; and removing the first instruction to open the reference for update.
- Claim 2Depends on #1
The method of claim 1 , wherein removing the first instruction comprises using common subexpression elimination to remove redundant instructions, including the first instruction.
- Claim 3Depends on #1
The method of claim 1 , wherein the reference references an object.
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 39 total)
References Cited — Backward Prior Art (47)
Non-Patent Literature (5)
- Agesen et al., "An Efficient Meta-Lock for Implementing Ubiguitous Synchronization", 30 pages, (Apr. 1999).
- Agrawal et al., "An interprocedural framework for placement of asynchronous I/O operations," UMD Technical Report CS-TR-3563, 1998, , retrieved Feb. 24, 2010, pp. 1-25.
- Agrawal et al., "An interprocedural framework for placement of asynchronous I/O operations," UMD Technical Report CS-TR-3563, 1998, <http://www.ib.umd.edu/drum/bitstream/1903/778/2/CS-TR-3563.pdf>, retrieved Feb. 24, 2010, pp. 1-25.
- Agrawal et al., "Interprocedural partial redundancy elimination and its application to distributed memory compilation," Proceedings of the ACM SIGPLAN 1995 Conference on Programming Language Design and Implementation, 1995, pp. 258-269.
- Andrade et al., "Efficient Execution of Multi-Query Data Analysis Batches Using Compiler Optimization Strategies," Lecture Notes in Computer Science, 15 pages (2004).