发明授权
US07089272B1 Specializing write-barriers for objects in a garbage collected heap
有权
专门针对垃圾收集堆中的对象的写入障碍
- 专利标题: Specializing write-barriers for objects in a garbage collected heap
- 专利标题(中): 专门针对垃圾收集堆中的对象的写入障碍
-
申请号: US10464371申请日: 2003-06-18
-
公开(公告)号: US07089272B1公开(公告)日: 2006-08-08
- 发明人: Alexander T. Garthwaite , David L. Detlefs
- 申请人: Alexander T. Garthwaite , David L. Detlefs
- 申请人地址: US CA Santa Clara
- 专利权人: Sun Microsystems, Inc.
- 当前专利权人: Sun Microsystems, Inc.
- 当前专利权人地址: US CA Santa Clara
- 代理机构: Kudirka & Jobse, LLP
- 主分类号: G06F17/30
- IPC分类号: G06F17/30
摘要:
A technique is provided for reducing the number of write barriers executed in mutator code without compromising garbage collector performance. Advantageously, a compiler generates two forms of a mutator code—a first version with write barriers and a second version substantially without write barriers. In operation, the first version of the code may be accessed by a vtable in a “mature” near-class and the second version may be accessed by a vtable in a “nascent” near-class. According to the invention, mapping of functionally equivalent points in the first and second versions of the mutator code may be facilitated by an associated pcmap. Further, each of the first and second versions may also be associated with a respective nr_map that facilitates mapping functionally equivalent points within different branches of guard code sequences corresponding to reference-writes to non-receiver objects.
信息查询