×

Avoiding remembered-set maintenance overhead for memory segments known to be in a collection set

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

1. For employing a computer system that includes a memory to operate as a garbage collector that collects at least a portion of the memory in collection increments in which it collects respective collection sets of the memory and that treats at least a portion of the memory as divided into memory segments and maintains remembered sets respectively associated with the memory segments, a method comprising:

  • A) during each collection increment;

    i) scanning for references to objects in the collection set the locations outside the collection set identified by entries in each remembered set associated with a memory segment in the collection set;

    ii) evacuating from the collection set any objects referred to by references thereby found; and

    iii) reclaiming the memory space occupied by the collection set; and

    B) before each of at least some collection increments;

    i) identifying a collection-set subset that includes at least a subset of the memory segments that will belong to the collection set collected during that collection increment; and

    ii) performing reference-memorialization operations in which;

    a) the locations of at least some references not located in the collection-set subset thus identified that refer to objects are recorded in the remembered sets associated with the memory segments containing those objects if those remembered sets do not already include entries that identify them; and

    b) no reference that is located in the collection-set subset thus identified is recorded in a remembered set.

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