Coalescing memory transactions
AssigneeInternational Business Machines Corporation
InventorsFadi Y. Busaba, Michael Karl Gschwind, Maged M. Michael, Valentina Salapura, Chung-Lung K. Shum
Life of this patent
Estimating the term…
Abstract
A transactional memory system coalesces two outermost transactions in a transactional memory environment. A processor of the transactional memory system executes a first transaction begin instruction of a first outermost transaction and processes the first transaction. Based on encountering a first transaction end instruction of the first outermost transaction, the processor determines whether the first transaction is to-be coalesced with a second outermost transaction.
Claims20
A method for coalescing two outermost transactions in a transactional memory environment, the method comprising:
- executing, by a processor, a first transaction begin instruction of a first outermost transaction in which a first nested transaction is nested;
- based on executing the first transaction begin instruction, processing, by the processor, the first outermost transaction;
- based on encountering a first transaction end instruction of the first outermost transaction during processing of the first outermost transaction, determining, by the processor, whether the first outermost transaction is to-be coalesced with a second outermost transaction in which a second nested transaction is nested;
- and
- based on the determining indicating that the first outermost transaction is to-be coalesced with the second outermost transaction, coalescing, by the processor, the first outermost transaction with the second outermost transaction.
A computer program product for coalescing two outermost transactions 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 execute a first transaction begin instruction of a first outermost transaction in which a first nested transaction is nested;
- program instructions to process the first outermost transaction based on executing the first transaction begin instruction;
- program instructions to respond to encountering a first transaction end instruction of the first outermost transaction during processing of the first outermost transaction, by determining whether the first outermost transaction is to-be coalesced with a second outermost transaction in which a second nested transaction is nested;
- and
- program instructions to respond to a determination that the first outermost transaction is to-be coalesced with the second outermost transaction, by executing program instructions to coalesce the first outermost transaction with the second outermost transaction.
A computer system for coalescing two outermost transactions in a transactional memory environment, the computer system comprising:
- one or more computer processors;
- one or more computer readable storage medium;
- program instructions stored on the computer readable storage medium for execution by at least one of the one or more processors, the program instructions comprising:
- program instructions to execute a first transaction begin instruction of a first outermost transaction in which a first nested transaction is nested;
- program instructions to process the first outermost transaction based on executing the first transaction begin instruction;
- program instructions to respond to encountering a first transaction end instruction of the first outermost transaction during processing of the first outermost transaction, by determining whether the first outermost transaction is to-be coalesced with a second outermost transaction in which a second nested transaction is nested;
- and
- program instructions to respond to a determination that the first outermost transaction is to-be coalesced with the second outermost transaction, by executing program instructions to coalesce the first outermost transaction with the second outermost transaction.
Dependencies are inferred from the claim text.