Optimistic semi-static transactional memory implementations
Abstract
A lock-based software transactional memory (STM) implementation may determine whether a transaction's write-set is static (e.g., known in advance not to change). If so, and if the read-set is not static, the STM implementation may execute, or attempt to execute, the transaction as a semi-static transaction. A semi-static transaction may involve obtaining, possibly after incrementing, a reference version value against which to subsequently validate that memory locations, such as read-set locations, have not been modified concurrently with the semi-static transaction. The read-set locations may be validated while locks are held for the locations to be written (e.g., the write-set locations). After committing the modifications to the write-set locations and as part of releasing the locks, versioned write-locks associated with the write-set locations may be updated to reflect the previously obtained, or newly incremented, reference version value.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: determining that: at least one of a plurality of shared memory locations to be read during processing a software transaction is not known in advance of said processing; and each one of the plurality of shared memory locations to be written during said processing the software transaction is known in advance of said processing; wherein each of the plurality of shared memory locations is associated with respective version value that is updated, based on a value of a version clock shared by the plurality of shared memory locations, when the shared memory
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗