Patents
US 7,225,439 B2#13979934 Most CitedExpiredUnited States (USPTO)Utility

Combining write-barriers within an inner loop with fixed step

8Forward Citations (#13979934 Global)
0.4/yrCitation Velocity (#19372761 Global)
1.39Citation PageRank (#25855493 Global)
27Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

The present invention provides a technique for reducing the number of write barriers executed in mutator code without compromising garbage collector performance. To that end, when mutator instructions located within an inner-most nested loop (“inner loop”) modify references stored in one or more arrays, a compiler defers emitting write barriers corresponding to the reference modifications until after the inner loop is emitted. By deferring emission of write barriers, the mutator may execute a write barrier for each card spanned by the array instead of executing a typically larger number of write barriers corresponding to each reference modification made in an array. Thus, the invention enables the compiler to reduce the amount of write-barrier overhead performed by the mutator, consequently enabling the mutator to execute faster and more efficiently.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer comprising a processor for compiling source code that specifies operation of a mutator, which includes a loop including at least one reference-modifying instruction, into object code for execution by a computer system, which includes a memory of which at least a portion is logically partitioned into one or more cards, wherein the processor executes a set of instructions to perform: (A) determining whether execution of the loop included in the mutator results in modifications, by the at least one reference-modifying instruction included in the loop, of at least one reference within e

Technical Overview & Description

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

References Cited — Backward Prior Art (27)

PatentTitleYearCitations
US 5,920,876 APerforming exact garbage collection using bitmaps that identify pointer values within objects1999114
US 6,115,782 AMethod and apparatus for locating nodes in a carded heap using a card marking structure and a node advance value200094
US 6,148,310 AMethod for combining card marking with remembered sets for old area of a memory heap200096
US 6,173,294 B1Method for combining card marking with remembered set for generational garbage collection with more than two generations200191
US 6,185,581 B1Train-algorithm-based garbage collector employing fixed-size remembered sets200184
US 6,192,517 B1Method, apparatus, and product for improved garbage collection in a memory system through the removal of reference conflicts200136
US 6,226,653 B1Method and apparatus for performing generational garbage collection using remembered set counter2001123
US 6,243,720 B1Address translation method and system having a forwarding table data structure2001155
US 6,289,358 B1Delivering alternate versions of objects from an object cache2001328
US 6,308,185 B1Methods and apparatus for generational dynamic management of computer memory200190
US 6,363,403 B1Garbage collection in object oriented databases using transactional cyclic reference counting200279
US 6,381,738 B1Method for optimizing creation and destruction of objects in computer programs2002134
US 6,424,977 B1Train-algorithm-based garbage collector employing reduced oversized-object threshold200260
US 6,453,466 B1Method and apparatus for distinguishing reference values from non-reference values in a runtime environment200217
US 6,457,019 B1Memory management within a run-time environment200221
US 2002138506 A1Method for efficient garbage collection based on object type—34
US 2002138507 A1Method for reducing write barrier overhead—22
US 6,490,599 B2On-the-fly garbage collector200272
US 2003033498 A1Computer system with heap and card table—26
US 2003208500 A1Multi-level undo of main-memory and volatile resources—51
US 2004003014 A1Method and apparatus for performing generational garbage collection in a segmented heap—19
US 6,804,762 B1Method and system for garbage collection using a dynamically tuned write barrier200432

Non-Patent Literature (5)

  • Andrew W. Appel, Simple Generational Garbage Collection and Fast Allocation, Mar. 1988, revised Sep. 1988, Department of Computer Science, Princeton University, Princeton, New Jersey.
  • Antony L. Hosking, et al., A Comparative Performance Evaluation of Write Barrier Implementations, pp. 92-107, Object Systems Labratory, Department of Computer Science, University of Massachusetts, Amherst, Massachusetts.
  • Antony L. Hosking, et al., Protection Traps and Alternatives for Memory Management of an Object-Oriented Language, pp. 1-14, Object Systems Labratory, Department of Computer Science, University of Massachusetts, Amherst, Massachusetts.
  • Antony L. Hosking, Remembered Sets Can Also Play Cards, pp. 1-8, Object Systems Laboratory, Department of Computer Science, University of Massachusetts, Amherst, Massachusetts.
  • Appel, et al., "Real-Time Concurrent Collection on Stock Multiprocessors", ACM SIGPLAN Notices, 1988.