Thread synchronization in a garbage-collected system using execution barriers
Abstract
The present invention synchronizes threads in a garbage-collected system. In accordance with the invention, each thread may enable or disable garbage collection. A synchronization facility receives a request to initiate garbage collection. In response to the request, the facility identifies threads that have enabled garbage collection more recently than they have disabled garbage collection. Then, until all of the threads are identified or suspended, the facility identifies threads that enable garbage collection and suspends threads that disable garbage collection. When all threads are identified or suspended, the facility performs garbage collection. The facility also suspends any identified threads that attempt to disable garbage collection during the performance of garbage collection.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 80.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method in a computer system for synchronizing the execution of each of a plurality of threads with a garbage collection process, the method comprising the steps of: for each thread, before the thread enters a series of instructions that interacts with references to garbage-collected objects, under the control of the thread, calling a first application programming interface (API) for disabling garbage collection if garbage collection is not already in progress, the first API returning immediately if called before garbage collection is initiated and returning only after garbage collection has
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 80 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (2)
- Wolfgang W. Kuechlin et al., "On Multi-Threaded List-Processing and Garbage Collection," Proceedings on Parallel and Distributed Processing, pp. 894-897, ©IEEE, 1991.
- Wolfgang W. Kuechlin et al., On Multi Threaded List Processing and Garbage Collection, Proceedings on Parallel and Distributed Processing, pp. 894 897, IEEE, 1991.