Method and apparatus for decreasing object copying by a generational, copying garbage collector
First Claim
1. A method for decreasing object copying during a garbage collection cycle by a generational, copying garbage collector operating in the memory of a computer system, wherein space is allocated in a plurality of memory regions in an allocation age sequence to form a young generation that the garbage collector collects during the collection cycle, the method comprising:
- (a) dividing the sequence into a first set of regions and a second set of regions based on object survival rates as a function of allocation age;
(b) scanning objects in the first set of regions for pointers into the second set of regions and exempting the first set of regions from collection; and
(c) collecting regions in the second set of regions.
2 Assignments
0 Petitions
Accused Products
Abstract
In a generational, copying garbage collector, young generation collection may be made more efficient by dynamically measuring object survival rates as a function of “fine-grained” allocation age, and choosing, on the basis of these survival rates, part of the young generation that will be not be collected, but instead scanned for pointers to objects in the rest of the young generation. The rest of the young generation, including objects referenced by the pointers, is then collected.
64 Citations
20 Claims
-
1. A method for decreasing object copying during a garbage collection cycle by a generational, copying garbage collector operating in the memory of a computer system, wherein space is allocated in a plurality of memory regions in an allocation age sequence to form a young generation that the garbage collector collects during the collection cycle, the method comprising:
-
(a) dividing the sequence into a first set of regions and a second set of regions based on object survival rates as a function of allocation age;
(b) scanning objects in the first set of regions for pointers into the second set of regions and exempting the first set of regions from collection; and
(c) collecting regions in the second set of regions. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. Apparatus for decreasing object copying during a garbage collection cycle by a generational, copying garbage collector operating in the memory of a computer system, wherein space is allocated in a plurality of memory regions in an allocation age sequence to form a young generation that the garbage collector collects during the collection cycle, the apparatus comprising:
-
a mechanism that divides the sequence into a first set of regions and a second set of regions based on object survival rates as a function of allocation age;
a mechanism that scans objects in the first set of regions for pointers into the second set of regions and exempts the first set of regions from collection;
a collector that collects regions in the second set of regions. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. Apparatus for decreasing object copying during a garbage collection cycle by a generational, copying garbage collector operating in the memory of a computer system, wherein space is allocated in a plurality of memory regions in an allocation age sequence to form a young generation that the garbage collector collects during the collection cycle, the apparatus comprising:
-
means for dividing the sequence into a first set of regions and a second set of regions based on object survival rates as a function of allocation age;
means for scanning objects in the first set of regions for pointers into the second set of regions and exempting the first set of regions from collection; and
means for collecting regions in the second set of regions. - View Dependent Claims (20)
-
Specification