首页> 外国专利> System and method for assisting exact garbage collection by segregating the contents of a stack into sub stacks

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.
机译:在计算机系统的程序数据堆栈中,每个堆栈都实现为两个子堆栈,一个包含引用,一个包含原始数据。通过这种方式,可以轻松地根据堆栈所在的子堆栈来确定堆栈上的一条信息是引用还是原始值。每个子堆栈本身就是具有堆栈基础,堆栈指针,和堆栈限制。在优选实施例中,每个子堆栈也有一个帧指针。修改了常规指令集,以便与引用一起使用的指令使用参考堆栈,而与数据一起使用的指令使用原始数据堆栈。具体而言,在编译或加载期间,所有可以与引用或数据无区别地操作的指令都将替换为等效的但特定于引用或特定于数据的指令。通过这种安排,垃圾回收算法可以定位存储在堆栈中的所有引用,因为这些引用全部位于内存中或多或少连续的区域,而没有散布的原始数据。

著录项

  • 公开/公告号EP0874316A3

    专利类型

  • 公开/公告日2000-02-23

    原文格式PDF

  • 申请/专利权人 SUN MICROSYSTEMS INC.;

    申请/专利号EP19980107104

  • 发明设计人 STEELE GUY L. JR.;

    申请日1998-04-18

  • 分类号G06F12/02;G06F9/40;

  • 国家 EP

  • 入库时间 2022-08-22 01:48:26

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号