Reducing synchronization reliance in marking
Abstract
Memory reclamation is tailored to avoid certain synchronization instructions, speeding concurrent garbage collection while preserving data integrity and availability. Garbage collection reclaims objects no longer in use, or other unused areas of memory. Pointers are partitioned into address portions holding address values and non-address portions having a special bit. Marking code writes only the non-address portions, setting the special bit as a mark reference, relocation candidate, etc. Mutator threads may concurrently mutate the entire pointer to update the address, but mutation does not cause incorrect reclamations or failure to do other operations such as relocation. Meanwhile, execution speed is increased by avoiding CAS (compare-and-swap instructions or compare-and-set) synchronization instructions. Non-CAS yet nonetheless atomic writes are used instead. Mutators run in user or kernel address spaces. Partitioned pointers and their use may be enclosed to avoid runtime errors by code that expects references to be in a canonical non-partitioned form.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system which avoids reliance on processor CAS instructions for marking a special bit of a pointer, the avoided CAS instructions including one or more compare-and-swap instructions or compare-and-set instructions, the system comprising: a memory having addressable units, each addressable unit being individually addressable using a respective address value; one or more pointers residing in the memory, each pointer residing in at least two addressable units, each pointer having an address portion which holds an address value and a non-address portion which is exclusive of the address portion; a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- “Atomic vs. Non-Atomic Operations”, retrieved from <<https://preshing.com/20130618/atomic-vs-non-atomic-operations/>>, Jun. 18, 2013, 13 pages (copy submitted in parent U.S. Appl. No. 16/268,041, filed Feb. 5, 2019).
- “Cloud Gal Episode 2: Maoni Stephens”, excerpt, full video available at <<https://www.youtube.com/watch?v=OwpMnxI5FLw>>, 1 page, May 22, 2017 (copy submitted in parent U.S. Appl. No. 16/268,041, filed Feb. 5, 2019).
- “Compare-and-swap”, retrieved from <<https://en.wikipedia org/wiki/Compare-and-swap>>, 7 pages, Jul. 30, 2018 (copy submitted in parent U.S. Appl. No. 16/268,041, filed Feb. 5, 2019).
- “Disruptor: High performance alternative to bounded queues for exchanging data between concurrent threads”, retrieved from <<https://lmax-exchange.github.io/disruptor/files/Disruptor-1.0.pdf>>, 11 pages, May 2011 (copy submitted in parent U.S. Appl. No. 16/268,041, filed Feb. 5, 2019).
- “F90_gc: Fortran Garbage Collector Module”, retrieved from <<https://www.nag.com/nagware/np/r52_doc/f90_gc.html>>, no later than Jan. 19, 2019, 4 pages (copy submitted in parent U.S. Appl. No. 16/268,041, filed Feb. 5, 2019).