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, the method comprising:
- initiating, by a thread, a transaction including a plurality of instructions;
recording a sequence of changes made to memory while executing the plurality of instructions;
detecting an occurrence of a trap event prior to completing the transaction;
passing an error code to the thread indicating a type of error that caused the trap event;
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.
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.
21 Citations
24 Claims
-
1. A method for regaining memory consistency after a trap event, the method comprising:
-
initiating, by a thread, a transaction including a plurality of instructions; recording a sequence of changes made to memory while executing the plurality of instructions; detecting an occurrence of a trap event prior to completing the transaction; passing an error code to the thread indicating a type of error that caused the trap event; 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 that when executed performs an operation for regaining memory consistency after a trap event, the operation comprising:
-
initiating, by a thread, a transaction including a plurality of instructions; recording a sequence of changes made to memory while executing the plurality of instructions; detecting an occurrence of a trap event prior to completing the transaction; passing an error code to the thread indicating a type of error that caused the trap event; 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 thread, a transaction including a plurality of instructions; recording a sequence of changes made to the transactional memory while executing the plurality of instructions; detecting an occurrence of a trap event prior to completing the transaction; passing an error code to the thread indicating a type of error that caused the trap event; 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