# US 9,354,882 B2 · Methods and apparatus to manage partial-commit checkpoints with fixup support

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,354,882 B2
- Document ID: US9354882B2
- Status: Granted
- Kind: B2
- Application number: 14/041,170
- Filed: 2013-09-30
- Published: 2014-01-30
- Granted: 2016-05-31
- Earliest claimed: 2009-12-22
- Assignees: Intel Corporation
- Applicants: Edson Borin; Youfeng Wu
- Inventors: Edson Borin; Youfeng Wu
- Web page: https://patentgrep.com/patent/US9354882B2

## CPC

- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3834: {Maintaining memory consistency}
- G06F 9/3842: {Speculative instruction execution}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/3858: {Result writeback, i.e. updating the architectural state or memory}
- G06F 9/3863: {using multiple copies of the architectural state, e.g. shadow registers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Example methods and apparatus to manage partial commit-checkpoints are disclosed. A disclosed example method includes identifying a commit instruction associated with a region of instructions executed by a processor, identifying candidate instructions from the region of instructions, and generating a processor partial commit-checkpoint to save a current state of the processor, the checkpoint based on calculated register values associated with live instructions, and including instruction reference addresses to link the candidate instructions.

## Claims

### Claim 1

A method to reduce processor resources during checkpoint creation, comprising:
distinguishing between first instructions and candidate instructions from a region of instructions, the candidate instructions to produce an unused value in the region of instructions;
preventing creation of a precise checkpoint state for a register associated with the candidate instructions in response to a speculative execution attempt; and
generating code to calculate the precise checkpoint state of the register and associating the code with an instruction reference address to link to the candidate instructions.

### Claim 2 (depends on 1)

A method as defined in claim 1, further comprising executing the code to calculate the precise checkpoint state in response to a processor recovery instruction.

### Claim 3 (depends on 2)

A method as defined in claim 2, wherein the processor recovery instruction is associated with a processor exception condition.

### Claim 4 (depends on 3)

A method as defined in claim 3, wherein the processor exception condition occurs in response to detecting a failure of the speculative execution attempt.

### Claim 5 (depends on 1)

A method as defined in claim 1, wherein preventing creation of the precise checkpoint state reduces processor resource consumption when the speculative execution attempt is successful.

### Claim 6 (depends on 1)

A method as defined in claim 1, further comprising storing the code to calculate the precise checkpoint state in a fixup code memory that is accessible by an exception handler of a processor.

### Claim 7 (depends on 6)

A method as defined in claim 6, further comprising associating a pointer with the instruction reference address link to access the code stored in the fixup code memory.

### Claim 8 (depends on 1)

A method as defined in claim 1, wherein the first instructions and the candidate instructions are retrieved from a dynamic optimizer.

### Claim 9

An apparatus to reduce processor resources during checkpoint creation, comprising:
a speculative execution system to distinguish between first instructions and candidate instructions from a region of instructions, the candidate instructions to produce an unused value in the region of instructions;
a partial commit-checkpoint logic module to prevent creation of a precise checkpoint state for a register associated with the candidate instructions in response to a speculative execution attempt; and
a fixup code generator to generate fixup code to calculate the precise checkpoint state of the register and associate the fixup code with an instruction reference link to the candidate instructions.

### Claim 10 (depends on 9)

An apparatus as defined in claim 9, wherein the speculative execution system is to execute the fixup code to calculate the precise checkpoint state in response to a processor recovery instruction.

### Claim 11 (depends on 10)

An apparatus as defined in claim 10, wherein the processor recovery instruction is associated with a processor exception condition.

### Claim 12 (depends on 11)

An apparatus as defined in claim 11, wherein the speculative execution system is to detect a failure of the speculative execution attempt.

### Claim 13 (depends on 9)

An apparatus as defined in claim 9, wherein the partial commit-checkpoint module is to reduce processor resource consumption of a processor when the speculative execution attempt is successful.

### Claim 14 (depends on 9)

An apparatus as defined in claim 9, further comprising a fixup code fetch module to store the fixup code in a fixup code memory that is accessible by an exception handler of a processor.

### Claim 15 (depends on 14)

An apparatus as defined in claim 14, wherein the fixup code fetch module is to associate a pointer with the instruction reference address link to access the fixup code stored in the fixup code memory.

### Claim 16 (depends on 9)

An apparatus as defined in claim 9, wherein the fixup code generator is to retrieve the first instructions and the candidate instructions from a dynamic optimizer.

### Claim 17

A tangible computer readable storage medium comprising computer readable instructions that, when executed, cause a processor to at least:
distinguish between first instructions and candidate instructions from a region of instructions, the candidate instructions to produce an unused value in the region of instructions;
prevent creation of a precise checkpoint state for a register associated with the candidate instructions in response to a speculative execution attempt; and
generate code to calculate the precise checkpoint state of the register and associate the code with an instruction reference address to link to the candidate instructions.

### Claim 18 (depends on 17)

A tangible computer readable storage medium as defined in claim 17, wherein the instructions further cause the processor to execute the code to calculate the precise checkpoint state in response to a recovery instruction of the processor.

### Claim 19 (depends on 17)

A tangible computer readable storage medium as defined in claim 17, wherein the instructions further cause the processor to store the code to calculate the precise checkpoint state in a fixup code memory that is accessible by an exception handler of the processor.

### Claim 20 (depends on 19)

A tangible computer readable storage medium as defined in claim 19, wherein the instructions further cause the processor to associate a pointer with the instruction reference address link to access the code stored in the fixup code memory.
