- Patent Title: Using hardware transactional memory to optimize reference counting
-
Application No.: US16240926Application Date: 2019-01-07
-
Publication No.: US10956284B2Publication Date: 2021-03-23
- Inventor: Vijay Sundaresan , Andrew J. Craik , Younes Manton , Yi Zhang
- Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Applicant Address: US NY Armonk
- Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Current Assignee Address: US NY Armonk
- Agency: Schmeiser, Olsen & Watts
- Agent Michael P. O'Keefe
- Main IPC: G06F11/14
- IPC: G06F11/14 ; G06F12/02 ; G06F8/41 ; G06F9/455 ; G06F9/46

Abstract:
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.
Public/Granted literature
- US20200218620A1 USING HARDWARE TRANSACTIONAL MEMORY TO OPTIMIZE REFERENCE COUNTING Public/Granted day:2020-07-09
Information query