A transaction is detected. The transaction has a begin-transaction indication and an end-transaction indication. If it is determined that the begin-transaction indication is not a no-speculation indication, then the transaction is processed.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A computer program product for managing speculative processing in a transactional memory environment, the computer program product comprising: one or more computer readable storage media; and program instructions stored on the one or more computer readable storage media, the program instructions comprising: program instructions to detect a transaction, wherein the transaction has a begin-transaction indication and an end-transaction indication; program instructions to determine whether the begin-transaction indication is a no-speculation indication; responsive to determining that the begin-transaction indication is not a no-speculation indication, program instructions to process the transaction; responsive to determining that the begin-transaction indication is a no-speculation indication, program instructions to determine whether instructions preceding the transaction have completed; and responsive to determining that the instructions preceding the transaction have not completed, program instructions to prohibit the transaction from being processed.
2. The computer program product of claim 1 , wherein the transaction comprises two or more instructions to be processed atomically on a data structure in a memory.
3. The computer program product of claim 1 , further comprising program instructions, stored on the one or more computer readable storage media, to: responsive to determining that the instructions preceding the transaction have completed, process the transaction.
4. The computer program product of claim 1 , wherein the begin-transaction indication comprises one of the following: a new instruction, a new prefix instruction, or a variant of an instruction in a current instruction set architecture.
5. The computer program product of claim 1 , further comprising program instructions, stored on the one or more computer readable storage media, to: responsive to processing the transaction, determine whether the end-transaction indication is a no-speculation indication; and responsive to determining that the end-transaction indication is a no-speculation indication, prohibit instructions following the transaction from being speculatively processed until the transaction has completed.
6. The computer program product of claim 1 , wherein the end-transaction indication comprises one of the following: a new instruction, a new prefix instruction, or a variant of an instruction in a current instruction set architecture.
7. A computer system for managing speculative processing in a transactional memory environment, the computer system comprising: one or more computer processors; one or more computer readable storage media; and program instructions stored on the one or more computer readable storage media, for execution by at least one of the one or more computer processors, the program instructions comprising: program instructions to detect a transaction, wherein the transaction has a begin-transaction indication and an end-transaction indication; program instructions to determine whether the begin-transaction indication is a no-speculation indication; responsive to determining that the begin-transaction indication is not a no-speculation indication, program instructions to process the transaction; responsive to determining that the begin-transaction indication is a no-speculation indication, program instructions to determine whether instructions preceding the transaction have completed; and responsive to determining that the instructions preceding the transaction have not completed, program instructions to prohibit the transaction from being processed.
8. The computer system of claim 7 , wherein the transaction comprises two or more instructions to be processed atomically on a data structure in a memory.
9. The computer system of claim 7 , further comprising program instructions, stored on the one or more computer readable storage media, for execution by the at least one of the one or more computer processors, to: responsive to determining that the instructions preceding the transaction have completed, process the transaction.
10. The computer system of claim 7 , wherein the begin-transaction indication comprises one of the following: a new instruction, a new prefix instruction, or a variant of an instruction in a current instruction set architecture.
11. The computer system of claim 7 , further comprising program instructions, stored on the one or more computer readable storage media, for execution by the at least one of the one or more computer processors, to: responsive to processing the transaction, determine whether the end-transaction indication is a no-speculation indication; and responsive to determining that the end-transaction indication is a no-speculation indication, prohibit instructions following the transaction from being speculatively processed until the transaction has completed.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
November 6, 2015
June 27, 2017
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.