×

Efficient encoding of references into a collection set

  • US 20040088339A1
  • Filed: 11/05/2002
  • Published: 05/06/2004
  • Est. Priority Date: 11/05/2002
  • Status: Active Grant
First Claim
Patent Images

1. For employing a computer system, which includes memory of which at least some is used as a heap for dynamic allocation, to perform garbage collection on an incrementally collected generation of the heap in collection increments with which respective collections sets are associated, a method comprising, in each of at least some of the collection increments:

  • A) identifying references that are located outside the collection set and refer to objects in the collection set;

    B) creating a reference list of reference-list entries representing references thus identified, each of at least some of the reference-list entries including a location identifier and a mode indicator that indicates whether the location identifier specifies;

    i) an individual-reference location in which a single reference represented by that reference-list entry is located;

    or ii) a region that is sized to contain more than one reference and contains each reference represented by that reference-list entry;

    C) performing an evacuation operation that includes, for each of at least some of the reference-list entries;

    i) identifying each reference represented by that reference-list entry by;

    a) if that reference-list entry'"'"'s mode indicator indicates that the reference-list entry specifies an individual-reference location, identifying as the reference represented by that reference-list entry the reference that occupies the individual-reference location thereby specified; and

    b) if that reference-list entry'"'"'s mode indicator indicates that the reference-list entry specifies a region sized to contain more than one reference, identifying as one said reference represented by that reference-list entry each reference that is located in the region thereby specified and refers to an object in the collection set; and

    ii) evacuating from the collection set each object referred to by a reference represented by that reference-list entry or referred to by a reference in an object thereby evacuated; and

    D) reclaiming the memory space occupied by the collection set.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×