Concurrent, lock-free object copying
Abstract
Described is a technology by which a real-time data relocating mechanism is provided for multiprocessing environments, including supporting lock-free programs that run in parallel. The relocating mechanism moves an object by using a status field related to the data field, possibly in an interim (wide) object space, which is then copied to a to-space object. The status information for each data field of the original object contains information indicating where a current version of the data for each field is present, that is, in the original, wide or to-space object. In one example, a handshake mechanism of a garbage collector establishes preparation and copy phases between the mechanism and other threads that determine where memory accesses occur. Also described is support for program thread compare-and-swap (CAS) operations and/or multi-word atomic operations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 31 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computing environment, a method of incrementally copying an object from a source set of memory locations to a destination set of memory locations, the method comprising: adding, to the object, a first forwarding pointer referencing an interim object copy of the object, the interim object copy comprising at least one interim object data field and at least one status field corresponding to the at least one interim object data field; writing data representing the object to the at least one interim object data field and updating a status value of the at least one status field to indicate that
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,824,424 B2 | Efficient lock-free multi-word compare-and-swap | 2020 | 1 |
| US 11,216,274 B2 | Efficient lock-free multi-word compare-and-swap | 2022 | 0 |
References Cited — Backward Prior Art (31)
Non-Patent Literature (5)
- Anderson et al.-"Lock-Free Transactions for Realtime Systems"-Series in Engineering, 1997-NSF contract CCR 9216421, Intel and IBM (pp. 1-8).
- Appel et al.-"Real-Time Concurrent Collection on Stock Multiprocessors"-Proceedings of the ACM SIGPLAN 1988 conference on Progamming Language Design and Implementation-vol. 23, Issue 7, Jul. 1988 (pp. 11-20).
- Fraser, Kair; "Practical Lock-freedom"; University of Cambridge; Feb. 2004; pp. 1-116.
- Gao, H. et al.; "Lock-free Parallel Garbage Collection by Mark&Sweep"; Technische Universiteit Eindhoven, The Netherlands; 2004; pp. 1-38.
- Herlihy, Maurice et al.; "Nonblocking Memory Management Support for Dynamic-Sized Data Structures"; ACM Transactions on Computer Systems; vol. 23, No. 2; May 2005; pp. 146-196.