Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberUS6928460 B2
Publication typeGrant
Application numberUS 10/189,054
Publication dateAug 9, 2005
Filing dateJul 1, 2002
Priority dateJul 1, 2002
Fee statusPaid
Also published asUS20040003014
Publication number10189054, 189054, US 6928460 B2, US 6928460B2, US-B2-6928460, US6928460 B2, US6928460B2
InventorsVijay G. Nagarajan, Robert Rochetti, Nedim Fresko
Original AssigneeSun Microsystems, Inc.
Export CitationBiBTeX, EndNote, RefMan
External Links: USPTO, USPTO Assignment, Espacenet
Method and apparatus for performing generational garbage collection in a segmented heap
US 6928460 B2
Abstract
One embodiment of the present invention provides a system that facilitates performing generational garbage collection on a heap. The system operates by dividing an old generation of the heap into segments. Next, the system divides each segment into a series of cards and associates a separate card table with each segment. This card table has an entry for each card in the segment. In a variation on this embodiment, while updating a pointer within an object in the old generation, the system locates the segment containing the object and accesses the card table for the segment. The system then marks the entry in the card table associated with the card containing the object.
Images(4)
Previous page
Next page
Claims(30)
1. A method for performing generational garbage collection on a heap, comprising:
dividing an old generation of the heap into segments;
dividing each segment into a series of cards; and
associating a card table with each segment, wherein the card table has an entry for each card in the series of cards.
2. The method of claim 1, further comprising storing the card table for a segment within the segment.
3. The method of claim 2, wherein upon receiving an update to a pointer within an object in the old generation, the method further comprises:
locating the segment containing the object;
accessing the card table for the segment; and
marking the entry in the card table associated with the card containing the object.
4. The method of claim 3, wherein during garbage collection, the method further comprises:
locating an updated card in the old generation by inspecting the card table for a marked entry;
examining pointers in the updated card; and
establishing that objects pointed to by pointers in the updated card are still active.
5. The method of claim 1, wherein dividing the heap into segments involves dividing the heap in segments along power-of-two address boundaries.
6. The method of claim 5,
wherein if a large object that is larger than the size of the segment requires storage, a large segment is allocated with sufficient memory to hold the object; and
wherein the large segment stores only the large object.
7. The method of claim 6, wherein the large segment is not moved during a heap compaction.
8. The method of claim 1, further comprising:
maintaining a hot list of segments that hold objects newly promoted from a young generation to the old generation; and
adding an updated segment to the hot list when an object is promoted from the young generation to the old generation.
9. The method of claim 1, further comprising maintaining a list of segments, wherein the list of segments is maintained in low-to-high address order.
10. The method of claim 1, further comprising promoting objects from a young generation to the old generation by:
selecting an object that can be promoted; and
iterating through segments to find a hole in the old generation that can hold the selected object.
11. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for performing generational garbage collection on a heap, the method comprising:
dividing an old generation of the heap into segments;
dividing each segment into a series of cards; and
associating a card table with each segment, wherein the card table has an entry for each card in the series of cards.
12. The computer-readable storage medium of claim 11, the method further comprising storing the card table for a segment within the segment.
13. The computer-readable storage medium of claim 12, wherein upon receiving an update to a pointer within an object in the old generation, the method further comprises:
locating the segment containing the object;
accessing the card table for the segment; and
marking the entry in the card table associated with the card containing the object.
14. The computer-readable storage medium of claim 13, wherein during garbage collection, the method further comprises:
locating an updated card in the old generation by inspecting the card table for a marked entry;
examining pointers in the updated card; and
establishing that objects pointed to by pointers in the updated card are still active.
15. The computer-readable storage medium of claim 11, wherein dividing the heap into segments involves dividing the heap in segments along power-of-two address boundaries.
16. The computer-readable storage medium of claim 15,
wherein if a large object that is larger than the size of the segment requires storage, a large segment is allocated with sufficient memory to hold the object; and
wherein the large segment stores only the large object.
17. The computer-readable storage medium of claim 16, wherein the large segment is not moved during a heap compaction.
18. The computer-readable storage medium of claim 11, the method further comprising:
maintaining a hot list of segments that hold objects newly promoted from a young generation to the old generation; and
adding an updated segment to the hot list when an object is promoted from the young generation to the old generation.
19. The computer-readable storage medium of claim 11, the method further comprising maintaining a list of segments, wherein the list of segments is maintained in low-to-high address order.
20. The computer-readable storage medium of claim 11, the method further comprising promoting objects from a young generation to the old generation by:
selecting an object that can be promoted; and
iterating through segments to find a hole in the old generation that can hold the selected object.
21. An apparatus for performing generational garbage collection on a heap, comprising:
a dividing mechanism that is configured to divide an old generation of the heap into segments;
wherein the dividing mechanism is further configured to divide each segment into a series of cards; and
an associating mechanism that is configured to associate a card table with each segment, wherein the card table has an entry for each card in the series of cards.
22. The apparatus of claim 21, further comprising a storing mechanism that is configured to store the card table for a segment within the segment.
23. The apparatus of claim 22, further comprising:
a locating mechanism that is configured to locate the segment containing an object;
an accessing mechanism that is configured to access the card table for the segment; and
a marking mechanism that is configured to mark the entry in the card table associated with the card containing the object.
24. The apparatus of claim 22, further comprising:
a locating mechanism that is configured to locate an updated card in the old generation by inspecting the card table for a marked entry;
an examining mechanism that is configured to examine pointers in the updated card; and
an establishing mechanism that is configured to establish that objects pointed to by pointers in the updated card are still active.
25. The apparatus of claim 21, wherein dividing the heap into segments involves dividing the heap in segments along power-of-two address boundaries.
26. The apparatus of claim 25,
wherein if a large object that is larger than the size of the segment requires storage, a large segment is allocated with sufficient memory to hold the object; and
wherein the large segment stores only the large object.
27. The apparatus of claim 26, wherein the large segment is not moved during a heap compaction.
28. The apparatus of claim 21, further comprising:
a hot list maintaining mechanism that is configured to maintain a hot list of segments that hold objects newly promoted from a young generation to the old generation; and
an adding mechanism that is configured to add an updated segment to the hot list when an object is promoted from the young generation to the old generation.
29. The apparatus of claim 21, further comprising a list maintaining mechanism that is configured to maintain a list of segments, wherein the list of segments is maintained in low-to-high address order.
30. The apparatus of claim 21, further comprising:
a selecting mechanism that is configured to select an object that can be promoted; and
an iterating mechanism that is configured to iterate through segments to find a hole in the old generation that can hold the selected object.
Description
BACKGROUND

1. Field of the Invention

The present invention relates to managing memory within a computer system. More specifically, the present invention relates to a method and an apparatus for performing generational garbage collection in a segmented heap.

2. Related Art

Modem object-oriented programming systems typically allocate objects from a region of memory known as the “heap”. When an object becomes unreachable because all references to the object have been removed, the object can no longer be used. However, the object continues to occupy memory space within the heap. At a later time, a “garbage collection” process reclaims this unused memory and makes it available to accommodate other objects. This garbage collection process may additionally perform compaction by rearranging objects in the heap to reduce memory fragmentation.

One of the most efficient types of garbage collectors is a “generational garbage collector”. In a generational garbage collector, new objects are allocated in a “young generation” area of the heap. If an object continues to have references over a specified number of garbage collections cycles, the object is promoted to one or more old generation areas of the heap. A generational garbage collector performs garbage collection frequently on the young generation area of the heap, while performing garbage collection less frequently on old generation areas. This tries to match typical program behavior where most newly created objects are short-lived, and are thus reclaimed during garbage collection of the young generation. Long-lived objects in the old generation areas tend to persist in memory. Hence, the old generation areas need to be garbage collected less frequently. This greatly reduces the effort involved in garbage collection because only the young generation area of the heap needs to be garbage collected frequently.

FIG. 1 illustrates a young generation area 102 and an old generation area 104 within a heap. As is described above, a new object is initially allocated in young generation area 102. After a specified number of garbage collection cycles, if the object is still referenced, the object is promoted to old generation area 104. Old generation area 104 typically comprises a large contiguous area of memory that is divided into “cards”. Each card contains a fixed amount of memory, such as 29 bytes. Note that an object 114 within old generation area 104 can have a pointer an object 112 in young generation area 102.

When the system garbage collects young generation area 102, references from old generation area 104 to objects in young generation area 102 need to be located. To make locating these references easier, the system maintains a card table 106 that is associated with old generation area 104. When a pointer in old generation area 104 is updated, a corresponding entry in the card table 106 is marked. For example, FIG. 1 shows marked entry 110 in card table 106, which indicates that a pointer to an object in a corresponding card 108 has been updated. During garbage collection, only marked cards need to be examined for current references to objects in young generation area 102. This eliminates the need to scan through references in all of the old generation area 104, which can significantly improve performance of the garbage collection process.

The above-described method of garbage collection works well for an old generation area that is allocated in contiguous memory. A problem exists, however, in using this type of garbage collection technique in small, embedded systems do not support virtual memory. In this type of system, it is not practical to maintain a contiguous heap, which can be grown and shrunk depending on the dynamically changing requirements of applications running on these small systems.

What is needed is a method and an apparatus that provides the advantages of using card tables as described above without having to maintain a large contiguous heap.

SUMMARY

One embodiment of the present invention provides a system that facilitates performing generational garbage collection on a heap. The system operates by dividing an old generation of the heap into segments. Next, the system divides each segment into a series of cards and associates a separate card table with each segment. This card table has an entry for each card in the segment.

In a variation on this embodiment, the card table for a given segment is stored within the segment. This facilitates locating the card table.

In a variation on this embodiment, while updating a pointer within an object in the old generation, the system locates the segment containing the object and accesses the card table for the segment. The system then marks the entry in the card table associated with the card containing the object.

In a variation on this embodiment, dividing the old generation of the heap into segments involves dividing the old generation of the heap into segments along power-of-two address boundaries with power-of-two size.

In a variation on this embodiment, the system maintains a hot list of segments that hold objects recently promoted from the young generation to the old generation. The system adds a segment to the hot list when an object in the segment is promoted from the young generation to the old generation.

In a variation of this embodiment, an object that is larger than a normal segment is placed in a large segment by itself. This large segment includes only the large object.

In a variation of this embodiment, the large segment is not moved during heap compaction.

In a variation of this embodiment, the system maintains a list of segments in low-to-high address order to aid memory compaction.

In a variation of this embodiment, while promoting objects from the young generation to the old generation the system promotes the largest objects first. In doing so, the system iterates through segments to find a hole in the old generation that can hold an object from the young generation.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates a generational garbage collector.

FIG. 2 illustrates a segmented heap in accordance with an embodiment of the present invention.

FIG. 3 illustrates platform-independent virtual machine in accordance with an embodiment of the present invention.

FIG. 4 illustrates pointer address in accordance with an embodiment of the present invention.

FIG. 5 is a flowchart illustrating the process of marking a card table in accordance with an embodiment of the present invention.

FIG. 6 is a flowchart illustrating the process of promoting objects from the young generation to the old generation in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION

The following description is presented to enable any person skilled in the art to make and use the invention, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present invention. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

The data structures and code described in this detailed description are typically stored on a computer readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. This includes, but is not limited to, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs) and DVDs (digital versatile discs or digital video discs), and computer instruction signals embodied in a transmission medium (with or without a carrier wave upon which the signals are modulated). For example, the transmission medium may include a communications network, such as the Internet.

Segmented Heap

FIG. 2 illustrates a segmented heap in accordance with an embodiment of the present invention. Young generation area 102 is unchanged from the description above in conjunction with FIG. 1. The old generation area 104, however, is divided into segments 202. Dividing the old generation area 104 into segments allows the system to request and receive dynamic memory allocations from the operating system of the computer that are not necessarily part of a large, contiguous space. Allocating a large contiguous memory space on small, embedded systems is typically not possible because of the lack of advanced memory management features in these small systems. The segments are allocated in small chunks, for example 64 K-bytes, along power-of-two boundaries. Locating the segments on power-of-two boundaries simplifies the process of accessing the segments and their internal data structures as described below in conjunction with FIG. 4.

These segments are linked together from low address to high address in a doubly linked list with links 206 as shown in FIG. 2. Note that other methods of linking these segments together are possible.

Each segment is associated with a card table, such as segment card table 204. By including the card table associated with a segment in the segment, locating and updating the card table can be accomplished with primitive bit operations as described below in conjunction with FIG. 4. Note that maintaining a single monolithic card table for the entire heap would require time-consuming operations to locate entries in the card table, to update the card table, and also waste space covering unused portions of the native heap.

Virtual Machine

FIG. 3 illustrates platform-independent virtual machine 302 in accordance with an embodiment of the present invention. Platform-independent virtual machine 302 supports a typical, object-oriented system. For example, platform-independent virtual machine 302 can be a JAVA virtual machine. The terms JAVA, JVM, and JAVA VIRTUAL MACHINE are trademarks of SUN Microsystems, Inc. of Palo Alto, Calif. Platform-independent virtual machine 302 includes reference updating mechanism 304, memory allocator 306, and garbage collector 310.

Reference updating mechanism 304 receives object references, which need to be updated. The object references can be to existing objects or to new objects being allocated within young generation area 102. Upon receiving an object reference, reference updating mechanism 304 locates the proper entry in the old generation as described below in conjunction with FIG. 4 and marks the corresponding entry in the card table for the card holding the reference.

Memory allocator 306 accesses the memory management system of the underlying operating system to receive additional segments for the segmented old generation. These segments are typically 64 K-bytes in size and are aligned on 64 K-byte boundaries. However, if an object requires more than 64 K-bytes of memory, a large segment is allocated with sufficient memory to hold the object. This large object is the only object placed in this segment.

Garbage collector 310 operates in a manner similar to other garbage collectors for carded heaps. Garbage collector 310 examines the segment card tables located within the segments to determine cards that have marked entries. When garbage collector 310 promotes an object from the young generation to the segmented old generation, it first attempts to find a place within the old generation to hold the promoted object. If a space cannot be found, memory allocator 306 allocates a new segment and links it into the existing old generation. Note that garbage collector 310 maintains a hot-list (not shown) of segments containing recently promoted objects to facilitate rescanning to update links within these hot-listed segments.

During compaction of the old generation, large segments are not moved. Garbage collector 310 compacts the old generation into as few segments as possible and either releases unused segments to the operating system or maintains a list of unused segments for later use when more memory for allocating objects is required.

Addressing

FIG. 4 illustrates pointer address 402 in accordance with an embodiment of the present invention. Pointer address 402 is the address of a pointer within the old generation, which needs to be updated. Reference updating mechanism 304 captures this address to update the card table entry for the card containing the pointer being updated.

Pointer address 402 is typically 32-bits in size. Since the segments are located on 216-byte boundaries, the upper 16-bits of pointer address 402 form segment number 404, while the lower 16 bits form slot location 406 within the segment. Assuming 29-byte card table entries, the upper 7-bits of slot location 406 identify card table index 408. Card table index 408 can be used to directly mark the proper card table entry for the updated card.

Card table address 410 is generated by concatenating segment number 404, nine zeros, and card table index 408. Card table address 410 can be used directly by reference updating mechanism 304 to update the card table entry for the updated card.

Marking Card Table Entries

FIG. 5 is a flowchart illustrating the process of marking a card table in accordance with an embodiment of the present invention. The system starts when reference updating mechanism 304 receives a write reference to a pointer to an object (step 502). Reference updating mechanism 304 then determines the segment address by accepting the upper 16-bits of the pointer address (step 504). Next, reference updating mechanism 304 determines the card index within the card table by accepting the upper 7-bits of the slot location (step 506). Reference updating mechanism 304 then accesses the card table within the segment (step 508) and marks the card table at the index (step 510) specified by concatenating the various parts of the address as described above in conjunction with FIG. 4.

Promoting Objects

FIG. 6 is a flowchart illustrating the process of promoting objects from the young generation to the old generation in accordance with an embodiment of the present invention. The system starts when garbage collector 310 determines that an object should be promoted from the young generation to the old generation (step 602). Next, garbage collector 310 searches the available segments for space to place the promoted object (step 604). If space is not available (step 606), garbage collector 310 requests the allocation of a new segment from the operating system (step 608).

If space is available at step 606 or after allocating a new segment at step 608, garbage collector 310 places the promoted object into the segment (step 610). Garbage collector 310 then links the segment containing the newly promoted object into the hot list (Step 612).

The foregoing descriptions of embodiments of the present invention have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims.

Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
US5845298 *Apr 23, 1997Dec 1, 1998Sun Microsystems, Inc.Write barrier system and method for trapping garbage collection page boundary crossing pointer stores
US5873104 *Jun 26, 1997Feb 16, 1999Sun Microsystems, Inc.Bounded-pause time garbage collection system and method including write barrier associated with source and target instances of a partially relocated object
US5873105 *Jun 26, 1997Feb 16, 1999Sun Microsystems, Inc.Bounded-pause time garbage collection system and method including write barrier associated with a source instance of a partially relocated object
US5900001 *Apr 23, 1997May 4, 1999Sun Microsystems, Inc.Method and apparatus for optimizing exact garbage collection using a bifurcated data structure
US5903900 *Apr 23, 1997May 11, 1999Sun Microsystems, Inc.Method and apparatus for optimizing exact garbage collection of array nodes in a carded heap
US5911144 *Apr 23, 1997Jun 8, 1999Sun Microsystems, Inc.Method and apparatus for optimizing the assignment of hash values to nodes residing in a garbage collected heap
US5915255 *Apr 23, 1997Jun 22, 1999Sun Microsystems, Inc.Computer controlled method
US5920876 *Apr 23, 1997Jul 6, 1999Sun Microsystems, Inc.Performing exact garbage collection using bitmaps that identify pointer values within objects
US5930807 *Apr 23, 1997Jul 27, 1999Sun MicrosystemsApparatus and method for fast filtering read and write barrier operations in garbage collection system
US5953736 *Apr 23, 1997Sep 14, 1999Sun Microsystems, Inc.Write barrier system and method including pointer-specific instruction variant replacement mechanism
US6038572 *Apr 23, 1997Mar 14, 2000Sun Microsystems, Inc.Method and apparatus for localizing nodes in a garbage collected carded heap
US6049810 *Apr 23, 1997Apr 11, 2000Sun Microsystems, Inc.Method and apparatus for implementing a write barrier of a garbage collected heap
US6098089 *Apr 23, 1997Aug 1, 2000Sun Microsystems, Inc.Generation isolation system and method for garbage collection
US6115782 *Apr 23, 1997Sep 5, 2000Sun Micosystems, Inc.Method and apparatus for locating nodes in a carded heap using a card marking structure and a node advance value
US6148309 *Aug 25, 1998Nov 14, 2000International Business Machines CorporationMethod for handling overflow of counters in comparison based actions
US6148310 *Aug 25, 1998Nov 14, 2000International Business Machines CorporationMethod for combining card marking with remembered sets for old area of a memory heap
US6173294 *Aug 25, 1998Jan 9, 2001International Business Machines CorporationMethod for combining card marking with remembered set for generational garbage collection with more than two generations
US6185581 *Aug 19, 1999Feb 6, 2001Sun Microsystems, Inc.Train-algorithm-based garbage collector employing fixed-size remembered sets
US6199075 *May 30, 1997Mar 6, 2001Sun Microsystems, Inc.Method and apparatus for generational garbage collection of a heap memory shared by multiple processors
US6226653 *Jan 10, 2000May 1, 2001International Business Machines CorporationMethod and apparatus for performing generational garbage collection using remembered set counter
US6249793 *Jun 10, 1999Jun 19, 2001Sun Microsystems, Inc.Mostly concurrent compaction in a garbage collection system
US6308185 *Feb 9, 1999Oct 23, 2001Sun Microsystems, Inc.Methods and apparatus for generational dynamic management of computer memory
US6317756 *Oct 7, 1998Nov 13, 2001International Business Machines CorporationOn-the-fly garbage collector
US6415302 *Aug 19, 1999Jul 2, 2002Sun Microsystems, Inc.Train-algorithm-based garbage collector employing farthest-forward-car indicator
US6424977 *Aug 19, 1999Jul 23, 2002Sun Microsystems, Inc.Train-algorithm-based garbage collector employing reduced oversized-object threshold
US6434576 *Aug 19, 1999Aug 13, 2002Sun Microsystems, Inc.Popular-object handling in a train-algorithm-based garbage collector
US6434577 *Aug 19, 1999Aug 13, 2002Sun Microsystems, Inc.Scalable-remembered-set garbage collection
US6449626 *Aug 19, 1999Sep 10, 2002Sun Microsystems, Inc.Reduced-cost remembered-set processing in a train-algorithm-based garbage collector
US6470361 *Jan 10, 2000Oct 22, 2002International Business Machines CorporationMethod and apparatus for performing generational garbage collection using middle-aged objects
US6490599 *Dec 11, 2000Dec 3, 2002International Business Machines CorporationOn-the-fly garbage collector
US6510440 *Jan 10, 2000Jan 21, 2003International Business Machines CorporationMethod and apparatus for performing generational garbage collection using barrier bits
US6526422 *Oct 31, 2000Feb 25, 2003Sun Microsystems, Inc.Striding-type generation scanning for parallel garbage collection
US6529919 *Feb 15, 2000Mar 4, 2003Sun Microsystems, Inc.Incremental class unloading in a train-algorithm-based garbage collector
US6560619 *Nov 1, 2000May 6, 2003Sun Microsystems, Inc.Using atomic compare-and-swap operations for forwarding-pointer installation
US6823351 *Oct 26, 2000Nov 23, 2004Sun Microsystems, Inc.Work-stealing queues for parallel garbage collection
US6826583 *Oct 25, 2000Nov 30, 2004Sun Microsystems, Inc.Local allocation buffers for parallel garbage collection
US6845437 *Aug 13, 2002Jan 18, 2005International Business Machines CorporationComputer system with heap and card table
US20020161792 *Jun 20, 2002Oct 31, 2002Garthwaite Alexander T.Garbage collector employing multiple-car collection sets
US20030033498 *Aug 13, 2002Feb 13, 2003International Business Machines CorporationComputer system with heap and card table
Non-Patent Citations
Reference
1 *Azagury, A., E.K. Kolodner, E. Petrank and Z. Yehudai "Combining Card Marking with Remembered Sets: How to Save Scanning Time", ACM SIGPLAN Notices, vol. 34, No. 3, 1999, pp. 10-19.
2 *Borman, S. et al. "A Serially Reusable Java(TM) Virtual Machine Implementation for High Volume, Highly Reliable Transaction Processing", Technical Report TR29.3406, IBM, downloaded from www-1.ibm.com/servers/eserver/zseries/software/java/pdf/29.3406.pdf,2000.
3 *Flood, C.H. and D. Detlefs "Parallel Garbage Collection for Shared Memory Processors", Proceedings of the USENIX Java(TM) Virtual Machine Research and Technology Symposium (JVM '01), Apr. 23-24, 2001.
4 *Hölzle "A Fast Write Barrier for Generational Garbage Collectors", ACM Conference on Object-Oriented Programming System Languages and Applications (OOPSLA '93), 1993.
5 *Hosking, A.L. and R.L. Hudson "Remembered Sets Can Also Play Cards", ACM Conference on Object-Oriented Programming Systems Languages and Applications (OOPSLA '93), 1993.
6 *Hosking, A.L., J.E.B. Moss and D. Stefanovic "A Comparative Performance Evaluation of Write Barrier Implementation", ACM Conference on Object-Oriented Programming Systems Languages and Applications (OOPSLA '92), 1992, p. 92-109.
7 *Jones, R. and R. Lins "Garbage Collection: Algorithms for Automatic Dynamic Memory Management", Chichester:John Wiley & Sons, 1996, Chapter 7, pp. 143-181. ISBN 0-471-94148-4. QA76.9.G37J66 1996.
8 *Printezis, T. and D. Detlefs "A Generationsl Mostly-Concurrent Garbage Collector", Proceedings of the 2<SUP>nd </SUP>International Symposium on Memory Management, Oct. 15-16, 2000, pp. 143-154.
9 *Seligmann, J. and S. Grarup "Incremental Mature Garbage Collection Using the Train Algorithm", Proceedings of the 9th European Conference on Object-Oriented Programming (ECOOP '95), Aug. 1995, pp. 235-252.
10 *Wilson, P.R. and T.G. Moher "A 'Card-Marking' Scheme for Controlling Intergerational References in Generation-Based Garbage Collection on Stock Hardware", ACM SIGPLAN Notices, vol. 24, No. 5, May 1989, pp. 87-92.
Referenced by
Citing PatentFiling datePublication dateApplicantTitle
US7085790Dec 6, 2002Aug 1, 2006Sun Microsystems, Inc.Advancing cars in trains managed by a collector based on the train algorithm
US7096238 *Dec 6, 2002Aug 22, 2006Sun Microsystems, Inc.Dynamic feedback for determining collection-set size
US7127709 *Sep 25, 2002Oct 24, 2006Microsoft CorporationSystem and method for jointly managing dynamically generated code and data
US7146390Feb 24, 2003Dec 5, 2006Sun Microsystems, Inc.Staging the processing of remembered-set entries as part of collection based on the train algorithm
US7188129Nov 15, 2002Mar 6, 2007Sun Microsystems, Inc.Merging trains in a collector based on the train algorithm
US7209935Nov 27, 2002Apr 24, 2007Sun Microsystems, Inc.Avoiding remembered-set maintenance overhead for memory segments known to be in a collection set
US7284108Sep 23, 2005Oct 16, 2007Microsoft CorporationSystems and methods for multiprocessor scalable write barrier
US7321909Dec 23, 2004Jan 22, 2008Sun Microsystems, Inc.Method and apparatus for forwarding references to objects concurrently with space-incremental garbage collection
US7404182Oct 3, 2003Jul 22, 2008Sun Microsystems, Inc.Deferring and combining write barriers for a garbage-collected heap
US7584231 *May 25, 2006Sep 1, 2009Sun Microsystems, Inc.Methods for determining a safe end of scan for generational garbage collection
US7599973 *Jan 12, 2006Oct 6, 2009Sun Microsystems, Inc.Method and apparatus for decreasing object copying by a generational, copying garbage collector
US7627621 *Feb 12, 2007Dec 1, 2009Sun Microsystems, Inc.Method and system for minor garbage collection
US7650371 *Dec 14, 2006Jan 19, 2010Microsoft CorporationFinalizable object usage in software transactions
US7664800Jan 22, 2007Feb 16, 2010Samsung Electronics Co., Ltd.Apparatus and method for managing resource on java environment
US7716449Jul 12, 2007May 11, 2010Oracle America, Inc.Efficient chunked java object heaps
US7730278Jul 12, 2007Jun 1, 2010Oracle America, Inc.Chunk-specific executable code for chunked java object heaps
US7870171Feb 12, 2007Jan 11, 2011Oracle America, Inc.Method and system for garbage collection in a multitasking environment
US8131955 *Apr 15, 2004Mar 6, 2012Microsoft CorporationEphemeral garbage collection using a tracking mechanism on a card table to determine marked bundles
Classifications
U.S. Classification1/1, 711/E12.012, 707/999.206
International ClassificationG06F17/30, G06F12/00, G06F12/02
Cooperative ClassificationY10S707/99957, G06F12/0276
European ClassificationG06F12/02D2G4G
Legal Events
DateCodeEventDescription
Jan 9, 2013FPAYFee payment
Year of fee payment: 8
Jan 7, 2009FPAYFee payment
Year of fee payment: 4
Jul 1, 2002ASAssignment
Owner name: SUN MICROSYSTEMS, INC., CALIFORNIA
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:NAGARAJAN, VIJAY G.;ROCHETTI, ROBERT;FRESKO, NEDIM;REEL/FRAME:013088/0588
Effective date: 20020603