Back to results
US 2016/0239372 A1Published application
Undoing changes made by threads
AssigneeHewlett Packard Enterprise Development LP
InventorDhruva Chakrabarti
Life of this patent
Estimating the term…
Abstract
Disclosed herein are a system, non-transitory computer readable medium, and method for recovering from an abnormal failure of a program. Changes made by a plurality of threads of the program are undone in a reverse order in which the changes were made.
Claims15
A system comprising:
- a computer program which upon execution generates log entries that specify changes made to memory locations by a plurality of threads spawning from the computer program, the log entries further to indicate when each thread obtained and released exclusive access to each memory location;
- a recovery module which upon execution instructs at least one processor to:
- determine whether the computer program has ended abnormally;
- and
- undo changes to the memory locations in a reverse order in which the threads changed the memory locations while each thread had exclusive access to a given memory location.
2 more elements
A non-transitory computer readable medium having instructions therein which, if executed, cause at least one processor to:
- determine whether a computer program has ended abnormally;
- analyze prerecorded log records that specify changes made to memory locations by a plurality of threads spawning from the computer program and which specify when each thread had exclusive access to each memory location;
- and
- undo changes to the memory locations in accordance with an analysis of the log records such that the changes are undone in a reverse order in which the plurality of threads changed the memory locations.
1 more element
A method comprising
- determining, using at least one processor, whether a computer program has ended abnormally;
- analyzing, using at least one processor, log files generated by a plurality of threads that spawned from the computer program, the log files specifying changes made to variables by each thread and when each thread had exclusive access to each variable;
- and
- undoing, using at least one processor, changes to the variables such that the changes are undone in a reverse order in which the plurality of threads changed the variables while each thread had exclusive access to a variable.
1 more element
Dependencies are inferred from the claim text.