发明名称 System and method for assisting exact Garbage collection by segregating the contents of a stack into sub stacks
摘要 In a program data stack in a computer system, every stack is implemented as two substacks, one to contain references and one to contain primitive data. In this manner, whether a piece of information on a stack is a reference or a primitive value is easily determined according to which substack it resides in. Each substack is itself a full-fledged stack data structure with a stack base, a stack pointer, and a stack limit. In the preferred embodiment, there is also a frame pointer for each substack. The normal instruction set is modified so that instructions that operate with references use the reference stack whereas instructions that operate with data use the primitive data stack. Specifically, during compilation, or loading, all instructions which can operate indiscriminately with either references or data are replaced by equivalent, but reference-specific or data-specific instructions. With this arrangement, garbage collection algorithms can locate all references stored within a stack, since the references are all in a more or less contiguous region of memory without interspersed primitive data.
申请公布号 US5903899(A) 申请公布日期 1999.05.11
申请号 US19970842063 申请日期 1997.04.23
申请人 SUN MICROSYSTEMS, INC. 发明人 STEELE, JR., GUY L.
分类号 G06F12/00;G06F12/02;(IPC1-7):G06F17/30 主分类号 G06F12/00
代理机构 代理人
主权项
地址