Patents
US 7,640,544 B2#6474367 Most CitedExpiredUnited States (USPTO)Utility

Work stealing queues for parallel garbage collection

15Forward Citations (#6474367 Global)
0.9/yrCitation Velocity (#8210216 Global)
2.01Citation PageRank (#14458244 Global)
50Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A multiprocessor, multi-program, stop-the-world garbage collection program is described. The system initially over partitions the root sources, and then iteratively employs static and dynamic work balancing. Garbage collection threads compete dynamically for the initial partitions. Work stealing double-ended queues, where contention is reduced, are described to provide dynamic load balancing among the threads. Contention is resolved by using atomic instructions. The heap is broken into a young and an old generation where parallel semi-space copying is used to collect the young generation and parallel mark-compacting the old generation. Speed and efficiency of collection is enhanced by use of card tables and linking objects, and overflow conditions are efficiently handled by linking using class pointers. A garbage collection termination employs a global status word.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 15.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method employing execution threads to perform garbage-collection work tasks for a heap memory the method includes: determining root references for the garbage-collection work tasks; dividing tasks of identifying objects referenced by the root references into task groups; assigning the task groups to the execution threads; providing a work queue for each thread of the execution threads, each work queue having first and second ends; executing the execution threads to perform the task groups by using a plurality of processors, wherein executing an execution thread comprises: pushing onto the fi

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • Aditya, et al., Garbage Collection for Strongly-Typed Languages using Run-time Type Reconstruction, ACM, 1994, pp. 16-20.
  • Appel, "Simple Generational Garbage Collection and Fast Allocation", Software Practice and Experience, 19(2), 1989, 171-183.
  • Arora, et al., "Thread Scheduling for Multiprogrammed Multiprocessors", Dept. of Computer Science, Uni. of Texas, 1998, Austin.
  • Baker, Henry G. "List Processing in Real Time on a Serial Computer", ACM, 1978, pp. 280-294.
  • Bibolet, et al., "Asynchronous Service Routine Invocation with Safely Serialized Work Queue", IBM Tech. Disclosure Bulletin, vol. 25, No. 8, Jan. 1983, IBM Corp.