Handling precompiled binaries in a hardware accelerated software transactional memory system
Abstract
A method and apparatus for enabling a Software Transactional Memory (STM) with precompiled binaries is herein described. Upon encountering an access operation in a transaction, an annotation field associated with a memory location referenced by the access is checked. In response to the memory location representing a previous similar access within the transaction, the access is performed without access barriers. However, if the annotation field is in a default state representing no previous access during a pendancy of the transaction, then a mode of the processor is determined. If the processor mode is in implicit mode, an access handler/barrier is asynchronously executed. Conversely, in an explicit mode, a flag is set instead of asynchronously executing the handler. In addition, during compilation convert explicit and convert implicit instructions are inserted to intelligently convert modes for precompiled and newly compiled binaries. Furthermore, new versions of newly compiled functions may be inserted to provide strong atomicity between previously and newly compiled functions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus comprising: decode logic adapted to decode a mode instruction referencing a transactional execution mode and a transactional memory access instruction referencing a data address from a transaction, which is to include a group of instructions that updates from are not to be made globally visible until the transaction is committed; a storage element adapted to be updated with an execution mode value to represent the execution mode in response to the decode logic decoding the mode instruction; a cache memory adapted to hold a cache line for the data address associated with a hardware
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- "Implementing a High Performance Software Transactional Memory for a Multi-core Runtime" by Bratin Saha, Ali-Reza Adl-Tabatabai, Rick Hudson, Chi Cao Minh, and Ben Hertzberg, Proceedings of the eleventh ACM SIGPLAN symposium on Principles and practice of parallel programming, 2006.
- "Language Support for Lightweight Transactions", by T.L. Harris and K. Fraser, Proceedings of the 2003 ACM SIGPLAN Conference on Object-Oriented Programming Systems.
- "Software Transactional Memory" by N. Shavit and D. Tuitou, Proceedings of the Fourteenth ACM SIGACT-SIGOPS Symposium on Principles of Distributed Computing.
- Ananian, C.S.; Asanovic, K.; Kuszmaul, B.C.; Leiserson, C.E.; Lie, S.; "Unbounded transactional memory", 11th International Symposium on High-Performance Computer Architecture, 2005. HPCA-11, Feb. 12-16, 2005 pp. 316-327.
- H. Berenson, P. Bernstein, J. Gray, J. Melton, E. O'Neil, and P. O'Neil. "A critique of ANSI SQL isolation levels". In Proceedings of SIGMOD, pp. 1-10, 1995.