主权项 |
1. A computer system for salvaging a partially executed hardware transaction, the computer system comprising:
a memory; and a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising: determining, by a processor, information about an about-to-fail handler for transactional execution of a code region of a hardware transaction; saving, by the processor, state information of the hardware transaction, the state information usable to determine whether the hardware transaction is to be salvaged or to be aborted; detecting, by the processor, an about-to-fail condition during the transactional execution of the hardware transaction; and based on the detecting, executing, by the processor, the about-to-fail handler using the information about the about-to-fail handler, the about-to-fail handler determining whether the hardware transaction is to be salvaged or to be aborted. |