METHODS, APPARATUS AND ARTICLES OF MANUFACTURE FOR REGAINING MEMORY CONSISTENCY AFTER A TRAP VIA TRANSACTIONAL MEMORY
First Claim
Patent Images
1. A method for regaining memory consistency after a trap event, comprising:
- initiating, by a first thread, a transaction, wherein the transaction includes a plurality of instructions;
recording a sequence of changes made to memory while executing the plurality of instructions;
detecting the occurrence of a trap event prior to completing the transaction;
rolling back the sequence of changes made to the memory up to a first instruction of the transaction, based on the recorded sequence, andresuming execution of the thread at the first instruction of the transaction.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the invention provide a method for regaining memory consistency after a trap via transactional memory. Transactional memory and a transactional memory log are used to undo changes made to memory from a transaction start point up to the point of a trap event. After the trap event is processed, and the changes are rolled back, the program can resume execution at the beginning of the transaction.
23 Citations
24 Claims
-
1. A method for regaining memory consistency after a trap event, comprising:
-
initiating, by a first thread, a transaction, wherein the transaction includes a plurality of instructions; recording a sequence of changes made to memory while executing the plurality of instructions; detecting the occurrence of a trap event prior to completing the transaction; rolling back the sequence of changes made to the memory up to a first instruction of the transaction, based on the recorded sequence, and resuming execution of the thread at the first instruction of the transaction. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A computer-readable storage medium containing a program, which, when executed performs an operation for regaining memory consistency after a trap event, the operation comprising:
-
initiating, by a first thread, a transaction, wherein the transaction includes a plurality of instructions; recording a sequence of changes made to memory while executing the plurality of instructions; detecting the occurrence of a trap event prior to completing the transaction; rolling back the sequence of changes made to the memory up to a first instruction of the transaction, based on the recorded sequence; and resuming execution of the thread at the first instruction of the transaction. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A system, comprising:
-
a processor; a transactional memory; and a transactional memory manager configured to perform an operation for regaining memory consistency after a trap event via the transactional memory, the operation comprising; initiating, by a first thread, a transaction, wherein the transaction includes a plurality of instructions, recording a sequence of changes made to the transactional memory while executing the plurality of instructions, detecting the occurrence of a trap event prior to completing the transaction, rolling back the sequence of changes made to the transactional memory up to a first instruction of the transaction, based on the recorded sequence, and resuming execution of the thread at the first instruction of the transaction. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24)
-
Specification