首页> 外国专利> Preventing garbage collection of objects in object oriented computer programming languages

Preventing garbage collection of objects in object oriented computer programming languages

机译:防止使用面向对象的计算机编程语言来垃圾回收对象

摘要

A method to improve object-oriented computer processing by reducing the incidences of object creation and garbage collection. A compiler, preferably of object-oriented language such as Java, identifies a list of objects that are fixed in value or are constant and places those fixed/constant objects in a separate class, a root class, which is loaded at run-time along with all the other classes. Upon creation of an object table, a separate object table may be created for those objects in the root class thereby immunizing the fixed entries from garbage collection and the values will not be erased from memory. Alternatively, the fixed/constant objects can be placed in an object table along with other variable objects but can be marked as active by changing the bit values in a field of the object table. In any event, first objects that are fixed in value are not created each time the object is called; and second, the values of those objects will not be discarded from memory because they are immune from garbage collection by manipulation of object tables or by fields within the object tables.
机译:通过减少对象创建和垃圾回收的发生率来改善面向对象的计算机处理的方法。最好使用诸如Java之类的面向对象语言的编译器识别值固定或恒定的对象列表,并将这些固定/常量对象放在单独的类(即根类)中,该类在运行时随与其他所有类别。创建对象表后,可以为根类中的那些对象创建一个单独的对象表,从而使固定条目免于垃圾回收,并且不会从内存中删除这些值。或者,可以将固定/常量对象与其他变量对象一起放置在对象表中,但可以通过更改对象表的字段中的位值将其标记为活动对象。无论如何,每次调用该对象时,都不会创建第一个固定值的对象。第二,这些对象的值不会从内存中丢弃,因为它们不受对象表操作或对象表中字段的垃圾回收的影响。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号