发明授权
- 专利标题: Method and apparatus for facilitating compact object headers
- 专利标题(中): 用于促进紧凑型物体头部的方法和装置
-
申请号: US10122071申请日: 2002-04-12
-
公开(公告)号: US07028287B2公开(公告)日: 2006-04-11
- 发明人: Lars Bak , Steffen Grarup
- 申请人: Lars Bak , Steffen Grarup
- 申请人地址: US CA Santa Clara
- 专利权人: Sun Microsystems, Inc.
- 当前专利权人: Sun Microsystems, Inc.
- 当前专利权人地址: US CA Santa Clara
- 代理机构: Park, Vaughan & Fleming, LLP
- 主分类号: G06F9/44
- IPC分类号: G06F9/44
摘要:
A system that associates an identifier with an instance defined within an object-oriented programming system. The system generates an identifier for the instance and associates a new near object with the instance, wherein the new near object points to a class specifying behavior for the object. The system stores the identifier in the new near object, and sets a class pointer located within a header of the instance to point to the new near object. In this way, the class pointer indirectly points to the class for the object through the new near object. The system can lock the instance to facilitate exclusive access to the instance by copying a near object associated with the instance to a method activation on the execution stack, and setting the class pointer of the instance to point to the copy of the near object on the execution stack.
公开/授权文献
信息查询