Constrained transaction execution
First Claim
Patent Images
1. A computer program product for processing transactions within a computing environment, said computer program product comprising:
- a non-transitory computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising;
obtaining, by a processor, a machine instruction, the machine instruction to initiate a transaction of a specified type, the specified type explicitly indicated in a field of the machine instruction;
executing, by the processor, the transaction initiated by the machine instruction, the transaction effectively delaying committing transactional stores to main memory until completion of a selected transaction;
determining, based on executing the transaction, that an abort condition has occurred;
checking whether the specified type of transaction is a constrained transaction, the constrained transaction having one or more restrictions associated therewith, and the checking comprising checking the field of the machine instruction to determine whether the transaction is a constrained transaction; and
performing processing dependent on the abort condition and dependent on the specified type of transaction, wherein based on the checking indicating the transaction is a constrained transaction and based on the abort condition being a particular type of abort condition, the performing processing comprising returning to a beginning of the transaction to re-execute the transaction, and wherein a fail path, other than returning to the beginning of the transaction, is not provided to handle the abort condition.
1 Assignment
0 Petitions
Accused Products
Abstract
Constrained transactional processing is provided. A constrained transaction is initiated by execution of a Transaction Begin constrained instruction. The constrained transaction has a number of restrictions associated therewith. Absent violation of a restriction, the constrained transaction is to complete. If an abort condition is encountered, the transaction is re-executed starting at the Transaction Begin instruction. Violation of a restriction may cause an interrupt.
-
Citations
18 Claims
-
1. A computer program product for processing transactions within a computing environment, said computer program product comprising:
a non-transitory computer readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising; obtaining, by a processor, a machine instruction, the machine instruction to initiate a transaction of a specified type, the specified type explicitly indicated in a field of the machine instruction; executing, by the processor, the transaction initiated by the machine instruction, the transaction effectively delaying committing transactional stores to main memory until completion of a selected transaction; determining, based on executing the transaction, that an abort condition has occurred; checking whether the specified type of transaction is a constrained transaction, the constrained transaction having one or more restrictions associated therewith, and the checking comprising checking the field of the machine instruction to determine whether the transaction is a constrained transaction; and performing processing dependent on the abort condition and dependent on the specified type of transaction, wherein based on the checking indicating the transaction is a constrained transaction and based on the abort condition being a particular type of abort condition, the performing processing comprising returning to a beginning of the transaction to re-execute the transaction, and wherein a fail path, other than returning to the beginning of the transaction, is not provided to handle the abort condition. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
11. A computer system for processing transactions within a computing environment, said computer system comprising:
-
a memory; and a processor in communications with the memory, wherein the computer system is configured to perform a method, said method comprising; obtaining, by a processor, a machine instruction, the machine instruction to initiate a transaction of a specified type, the specified type explicitly indicated in a field of the machine instruction; executing, by the processor, the transaction initiated by the machine instruction, the transaction effectively delaying committing transactional stores to main memory until completion of a selected transaction; determining, based on executing the transaction, that an abort condition has occurred; checking whether the specified type of transaction is a constrained transaction, the constrained transaction having one or more restrictions associated therewith, and the checking comprising checking the field of the machine instruction to determine whether the transaction is a constrained transaction; and performing processing dependent on the abort condition and dependent on the specified type of transaction, wherein based on the checking indicating the transaction is a constrained transaction and based on the abort condition being a particular type of abort condition, the performing processing comprising returning to a beginning of the transaction to re-execute the transaction, and wherein a fail path, other than returning to the beginning of the transaction, is not provided to handle the abort condition. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18)
-
Specification