主权项 |
1. 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. |