Invention Grant
- Patent Title: Efficient lock-free multi-word compare-and-swap
-
Application No.: US17086065Application Date: 2020-10-30
-
Publication No.: US11216274B2Publication Date: 2022-01-04
- Inventor: Virendra J. Marathe , Alex Kogan , Mihail-Igor Zablotchi
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood City
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood City
- Agency: Kowert, Hood, Munyon, Rankin & Goetzel, P.C.
- Agent Robert C. Kowert
- Main IPC: G06F12/16
- IPC: G06F12/16 ; G06F9/30 ; G06F12/0804

Abstract:
A computer comprising one or more processors and memory may implement an atomic compare and swap (CAS) operation on multiple data elements. Each data element has a corresponding descriptor which includes a new value and a reference to a controlling descriptor for the CAS operation. The controlling descriptor includes a status value which indicates whether the CAS operation is in progress or has completed. The operation first allocates memory locations of the data elements by writing addresses of respective descriptors to the memory locations using CAS instructions. The operation then writes successful status to the status value of the controlling descriptor to indicate that the respective memory locations are no longer allocated. The operation then returns an indicator of successful completion without atomically updating the memory locations with the new values. Extensions are further described to implement CAS operations in non-volatile random access memories.
Public/Granted literature
- US20210049010A1 Efficient Lock-Free Multi-Word Compare-And-Swap Public/Granted day:2021-02-18
Information query