Invention Grant
- Patent Title: Modifying a series of lock acquire and release operations to use a single lock reservation
-
Application No.: US16802552Application Date: 2020-02-26
-
Publication No.: US11409580B2Publication Date: 2022-08-09
- Inventor: Andrew James Craik
- 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: Konrad Raynes Davda & Victor LLP
- Agent David W. Victor
- Main IPC: G06F9/52
- IPC: G06F9/52 ; G06F9/38 ; G06F9/48 ; G06F8/41

Abstract:
Provided are a computer program product, system, and method for modifying a series of lock acquire and release operations to use a single lock reservation. A representation of source code is scanned to determine a series of acquire lock program statement and release lock program statement pairs to acquire and release a lock by a thread. A first acquire lock program statement in the series is modified to be an acquire with reserve program statement that when executed by the thread causes the thread to acquire the lock and indicate the lock as reserved for use by the thread. A last release lock program statement in the series is modified to be a release with cancel program statement that when executed by the thread causes the thread to release the lock and indicate the lock as not reserved.
Public/Granted literature
- US20210263787A1 MODIFYING A SERIES OF LOCK ACQUIRE AND RELEASE OPERATIONS TO USE A SINGLE LOCK RESERVATION Public/Granted day:2021-08-26
Information query