Using hardware transactional memory to optimize reference counting
AssigneeInternational Business Machines Corporation
InventorsVijay Sundaresan, Andrew J. Craik, Younes Manton, Yi Zhang
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsVijay Sundaresan, Andrew J. Craik, Younes Manton, Yi Zhang
Estimating the term…
An approach is provided for optimizing reference counting. Responsive to receiving code representing a program by a just-in-time compiler, one or more processors in computing machinery supporting transactional memory identify regions of the code having respective sets of reference counting operations executed dynamically. Identifying the regions of the code uses an analysis of semantics of the code. The identified regions are enclosed in respective transactions. The code that was to perform atomic operations, including the reference counting operations in the identified regions, is transformed into new code that performs non-atomic operations that are variants of the atomic operations. Fallback code sequences are inserted into the transformed code. In a non-transactional manner and in response to detections of failures in respective transactions, the fallback code sequences execute original code sequences that were in the code prior to the transformation of the code. The original code sequences include respective multiple atomic operations.
A computer-implemented method of optimizing reference counting, the method comprising the steps of:
A computer program product for optimizing reference counting, the computer program product comprising a computer readable storage medium having computer readable program code stored on the computer readable storage medium, wherein the computer readable storage medium is not a transitory signal per se, the computer readable program code being executed by a central processing unit (CPU) of a computer system to cause the computer system to perform a method comprising the steps of:
A computer system comprising:
Dependencies are inferred from the claim text.