Patent ID: 9229725
Filing Date: 2016-01-05
CPC Classification: G06F

Claim Text:
1. A computer-implemented method for safe conditional operation when storage access cannot be proven safe, the computer-implemented method comprising: receiving a portion of source code for a transaction by an enhanced compiler; analyzing, by the enhanced compiler, the portion of source code received; determining whether the portion of source code analyzed by the enhanced compiler is a candidate for transformation; responsive to a determination the portion of source code analyzed by the enhanced compiler is a candidate for transformation, transforming, by a computer processor, the portion of the source code analyzed to use a conditional operation in a first portion of the transformed code, wherein the conditional operation uses hardware transaction memory to invoke retry operations within hardware; wherein transforming the portion of the source code analyzed to use the conditional operation in the first portion of the transformed code further comprises specifying a recovery routine within the first portion of the transformed code; adding a branch, directed to an original code portion, in a second portion of the transformed code, wherein the branch is a recovery portion containing the original code portion; and executing a transaction comprising the first portion of the transformed code and the second portion of the transformed code.