×

Computer method and system for conservative-stack and generational heap garbage collection

  • US 5,652,883 A
  • Filed: 05/23/1995
  • Issued: 07/29/1997
  • Est. Priority Date: 06/15/1992
  • Status: Expired due to Term
First Claim
Patent Images

1. A method in a computer system for marking data objects in a computer memory, each object being identified by a pointer, the memory including a stack and a heap, the heap having a plurality of old objects and a plurality of new objects, the memory including a list of pointers to a plurality of old objects that contain a pointer to a new object, the stack having stack entries, each stack entry identifiable as being definitely not a pointer or being possibly a pointer, the method comprising the steps of:

  • identifying whether each stack entry is definitely not a pointer or possibly a pointer;

    for each new object possibly pointed to by a stack entry that is identified as possibly a pointer, marking the new object as accessible and locked, and marking each new object that is accessible through the marked object as accessible; and

    for each old object that is pointed to by a pointer in the list of pointers, marking each new object that is pointed to by a pointer contained in the old object as accessible and marking each new object that is accessible through the marked objects as accessible so that during heap compaction, the locked objects are not moved and the accessible objects that are not locked are moved to consolidate free space of the heap.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×