×

Merging trains in a collector based on the train algorithm

  • US 7,188,129 B2
  • Filed: 11/15/2002
  • Issued: 03/06/2007
  • Est. Priority Date: 11/15/2002
  • Status: Active Grant
First Claim
Patent Images

1. A method for employing a computer system that includes memory to operate as a garbage collector, which examines the memory to find and reclaim unused memory, the method comprising:

  • A) treating a generation in the memory as divided into car sections organized into a set of trains;

    B) collecting unused memory in the generation in accordance with the train algorithm in increments with which respective collection sets of objects are associated, in at least some of which the garbage collector determines for at least one train whether any references located outside that train refer to objects within that train and reclaims as unused, memory in the car sections belonging to that train if there are no such references, and in at least some of which the garbage collector evacuates to respective trains containing references outside the collection set any objects in the collection set referred to thereby and reclaims as unused, memory in the remaining collection set;

    C) making a determination of whether at least one set of train-merging criteria is met; and

    D) if any said set of train-merging criteria is met, combining a plurality of the existing trains into a single train.

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