发明名称 Garbage collection using nursery regions for new objects in a virtual heap
摘要 A method and system for garbage collecting a virtual heap using nursery regions for newly created objects to reduce flushing of objects from an in-memory heap to a store heap is provided. The garbage collection method is suited for use with small consumer and appliance devices that have a small amount of memory and may be using flash devices as persistent storage. The garbage collection method may provide good performance where only a portion of the virtual heap may be cached in the physical heap. The virtual heap may use a single address space for both objects in the store and the in-memory heap. In one embodiment, a single garbage collector is run on the virtual heap address space. The garbage collection method may remove non-referenced objects from the virtual heap. The garbage collection method may also include a compaction phase to reduce or eliminate fragmentation, and to improve locality of objects within the virtual heap. In one embodiment, the garbage collector for the virtual heap may be implemented as a generational garbage collector using working sets in the virtual heap, where each generation is confined to a working set of the heap. The generational garbage collector may allow the flushing of changes after each garbage collection cycle for each working set region. Heap regions with different flushing policies may be used. An object nursery region without flushing where objects are initially created may be used. When a garbage collection cycle is run, objects truly referenced in the object nursery may be copied back into heap regions to be flushed, while short-lived objects no longer referenced may be deleted without flushing.
申请公布号 US6763440(B1) 申请公布日期 2004.07.13
申请号 US20000587077 申请日期 2000.06.02
申请人 SUN MICROSYSTEMS INC 发明人 TRAVERSAT BERNARD A;DUIGOU MICHAEL J;SAULPAUGH THOMAS E;SLAUGHTER GREGORY L
分类号 G06F12/02;G06F12/08;(IPC1-7):G06F12/12 主分类号 G06F12/02
代理机构 代理人
主权项
地址