首页> 外国专利> Method to purge a memory of objects, which are no longer accessible during program run

Method to purge a memory of objects, which are no longer accessible during program run

机译:清除对象内存的方法,这些对象在程序运行期间不再可访问

摘要

Programs in programming languages with dynamic storage space allocation require the memory to be purged from time to time of objects (e.g. datawords) which can no longer be accessed during the program run. Objects which can no longer be addressed (dead objects) are then made available again to the system. The method for purging the memory divides the address space into a first storage area (NS) and a second storage area (OS). In the first storage area, the new objects are stored in a first part-store (CA). During a first purging, the live objects of the first part-store (CA) are copied into a second part-store (FSS) of the first storage area. After the purging, the live objects saved in the second part-store (FSS) are recopied into a third part-store (PSS). During further purging processes, live objects are saved from the first part-store (CA) into the second part-store (FSS), live objects in the third part-store (PSS) are saved in the second storage area (OS). Objects newly saved in the second part-store (FSS) and live objects newly saved in the second storage area are alternately examined until no further live objects are found. The saved objects in the first storage area (NS) are then copied from the second part-store (FSS) into the third part-store (PSS). The second storage area (OS) is purged in accordance with the stop and copy method. IMAGE
机译:具有动态存储空间分配功能的编程语言程序需要不时清除对象(例如数据字)的内存,这些内存在程序运行期间无法访问。然后,不再寻址的对象(死对象)将再次对系统可用。用于清除存储器的方法将地址空间划分为第一存储区域(NS)和第二存储区域(OS)。在第一存储区域中,新对象存储在第一部分存储区(CA)中。在第一次清除期间,将第一部分存储区(CA)的活动对象复制到第一存储区域的第二部分存储区(FSS)中。清除后,保存在第二部分存储(FSS)中的活动对象将被复制到第三部分存储(PSS)中。在进一步的清除过程中,活动对象从第一部分存储(CA)保存到第二部分存储(FSS),第三部分存储(PSS)中的活动对象保存在第二存储区域(OS)中。交替检查新保存在第二部分存储(FSS)中的对象和新保存在第二存储区域中的活动对象,直到找不到其他活动对象。然后将第一存储区域(NS)中保存的对象从第二部分存储(FSS)复制到第三部分存储(PSS)。根据停止和复制方法清除第二存储区域(OS)。 <图像>

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号