Method and apparatus for speculative execution of uncontended lock instructions
Abstract
A method and apparatus for executing lock instructions speculatively in an out-of-order processor are disclosed. In one embodiment, a prediction is made whether a given lock instruction will actually be contended. If not, then the lock instruction may be treated as having a normal load micro-operation which may be speculatively executed. Monitor logic may look for indications that the lock instruction is actually contended. If no such indications are found, the speculative load micro-operation and other micro-operations corresponding to the lock instruction may retire. However, if such indications are in fact found, the lock instruction may be restarted, and the prediction mechanism may be updated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 13.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A processor, comprising: a predictor to issue a prediction whether a lock instruction is contended; a scheduler to issue a set of micro-operations corresponding to said lock instruction speculatively when said prediction is that said lock instruction is not contended; and monitor logic to determine if a contended indication occurs, wherein said contended indication is when a store with unlock micro-operation misses in a cache and said processor restarts processing of said lock instruction when said monitor logic determines that a contended indication occurs.
- Claim 2Depends on #1
The processor of claim 1 , wherein said scheduler issues a load_with_lock micro-operation as a load_without_lock micro-operation.
- Claim 3Depends on #1
The processor of claim 1 , wherein said contended indication is an interrupt.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (13 of 13 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (4)
- Intel Corporation, "IA-32 Intel Architecture Developer's Manual-vol. 3: System Programming Guide", Order No. 253668, pp. 7-1 to 7-46, 2004.
- PCT Int'l. Search Report and Written Opinion, Int'l. Application No. PCT/US2005/021838, Int'l. filing date Jun. 17, 2005, mailing date Feb. 27, 2006 (19 pp.).
- Rajwar et al., Speculative Lock Elision: Enabling Highly Concurrent Multithreaded Execution, Dec. 2001.
- Ravi Rajwar, et al., "Speculative Lock Elision: Enabling Highly Concurrent Multithreaded Execution", Microarchitecture, Micro-34 Symposium, Dec. 1-5, 2001 (pp. 294-305), Piscataway, NJ, USA, IEEE, Dec. 1, 2001.