Utilization of register checkpointing mechanism with pointer swapping to resolve multithreading mis-speculations
Abstract
Methods and apparatus are disclosed for using a register checkpointing mechanism to resolve multithreading mis-speculations. Valid architectural state is recovered and execution is rolled back. Some embodiments include memory to store checkpoint data. Multiple thread units concurrently execute threads. They execute a checkpoint mask instruction to initialize memory to store active checkpoint data including register contents and a checkpoint mask indicating the validity of stored register contents. As register contents change, threads execute checkpoint write instructions to store register contents and update the checkpoint mask. Threads also execute a recovery function instruction to store a pointer to a checkpoint recovery function, and in response to mis-speculation among the threads, branch to the checkpoint recovery function. Threads then execute one or more checkpoint read instructions to copy data from a valid checkpoint storage area into the registers necessary to recover a valid architectural state, from which execution may resume.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 32 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus, comprising: a plurality of thread unit circuits to concurrently execute a plurality of threads, each of the plurality of thread unit circuits being capable of executing a checkpoint write instruction to update data stored in a memory storage area after execution of a checkpoint mask instruction; and the memory storage area comprising an active checkpoint storage area and a most recent valid checkpoint storage area, wherein the active checkpoint storage area is to store, in response to the checkpoint write instruction, first data for the checkpoint write instruction encountered du
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,095,637 B2 | Speculative retirement of post-lock instructions | 2018 | 0 |
References Cited — Backward Prior Art (32)
Non-Patent Literature (5)
- Balakrishnan, et al., "Program Demultiplexing: Data-flow based Speculative Parallelization of Methods in Sequential Programs", Symposium, 2006, 12 pages, Proc. of International Symposium on Computer Architecture.
- Colohan et al., "CMP Support for Large and Dependent Speculative Threads", Aug. 2007, pp. 1041-1054.
- Du, et al., "A Cost-Friven Compilation Framework for Speculative Parallelization of Sequential Programs", Jun. 2004, 11 pages, Washington DC.
- Notice of Grant received for Chinese Patent Application No. 201010161083, dated May 16, 2014, 2 pages of English Translation and 2 pages of Chinese Notice of Grant.
- Notice of Grant received for Japanese Patent Application No. 2010-080729, dated Mar. 5, 2013, 4 pages of grant only.