×

Placement of allocation trains in the train algorithm

  • US 7,035,884 B2
  • Filed: 11/05/2002
  • Issued: 04/25/2006
  • Est. Priority Date: 11/05/2002
  • Status: Active Grant
First Claim
Patent Images

1. A method for employing a computer system that includes memory to collect garbage in accordance with the train algorithm in at least a generation of a dynamically allocated heap in the memory, the method comprising:

  • A) treating a generation of a collected heap in the memory as divided into car sections that belong to trains linked in a front-to-rear order;

    B) collecting the generation in collection increments, in each of which a collection set of at least one car section is collected in accordance with the train algorithm such that cars in trains, which are in front of other trains in the front-to-rear order, are collected before cars in the other trains; and

    C) linking cars in to a train that is linked ahead of at least one other train each of at least some cars into which objects are directly allocated;

    D) objects directly allocated before a predetermined time threshold in an interval between collection increments, are allocated in a set of at least one early-object car, and those directly allocated after the predetermined time threshold in the interval are allocated in a set of at least one different, late-object car; and

    E) the trains into which the at least one early-object car and at least one late-object care are linked are not the same.

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