The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Aug. 09, 2022

Filed:

Feb. 26, 2020
Applicant:

International Business Machines Corporation, Armonk, NY (US);

Inventor:

Andrew James Craik, North York, CA;

Attorneys:
Primary Examiner:
Assistant Examiner:
Int. Cl.
CPC ...
G06F 9/52 (2006.01); G06F 9/38 (2018.01); G06F 9/48 (2006.01); G06F 8/41 (2018.01);
U.S. Cl.
CPC ...
G06F 9/526 (2013.01); G06F 8/443 (2013.01); G06F 9/3812 (2013.01); G06F 9/3851 (2013.01); G06F 9/4881 (2013.01);
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.


Find Patent Forward Citations

Loading…