Back to results
US 8,019,983 B1Granted
Setting a flag bit to defer event handling to a safe point in an instruction stream
OwnerGuillermo J. Rozas, Alexander Klaiberinventors
Life of this patent
Estimating the term…
Abstract
Methods and systems thereof for exception handling are described. An event to be handled is identified during execution of a code sequence. A bit is set to indicate that handling of the event is to be deferred. An exception corresponding to the event is generated if the bit is set.
Claims14
A computer-readable storage device having stored thereon, computer-executable instructions that, responsive to execution by a computing device, cause the computing device to perform operations comprising:
- during execution of a stream of instructions demarcated by a first commit instruction and a second commit instruction and without an intervening commit instruction after the first commit instruction and before the second commit instruction, identifying an event to be handled, wherein the event is associated with a first instruction in the stream;
- setting a flag bit to indicate deferred handling of the event;
- and
- generating an exception corresponding to the event if the flag bit is set, wherein the exception causes the event to be handled at the first commit instruction if a rollback operation occurs during the execution of the stream of instructions and otherwise at the second commit instruction.
1 more element
A computer system comprising:
- a processor;
- and
- memory coupled to the processor and having stored therein instructions that, if executed by the computer system, cause the computer system to perform operations comprising:
- during execution of a stream comprising multiple instructions, wherein the stream is demarcated by a first commit instruction and a second commit instruction and wherein the first and second commit instructions comprise consecutive commit instructions without an intervening commit instruction, identifying an event to be handled, wherein the event is associated with a first instruction of the multiple instructions;
- setting a flag bit to indicate that the event is identified but handling of the event is to be deferred;
- and
- generating an exception corresponding to the event if the flag bit is set, wherein the exception causes the event to be handled at the second commit instruction unless a rollback operation occurs during the execution of the stream and at the first commit instruction if the rollback operation occurs.
4 more elements
Dependencies are inferred from the claim text.