发明名称 Method and apparatus for providing finer marking granularity for fields within objects
摘要 One embodiment of the present invention provides a system that facilitates marking of objects defined within an object-oriented programming system to keep track of accesses to fields within the objects. The system operates by receiving a reference to a field within an object, and identifying a marking bit within the object that is associated with the field. Note that each marking bit within the object is associated with a different subset of fields within the object. Next, the system sets the marking bit to indicate that at least one field within the associated subset of fields has been referenced. Finally, the system performs the reference to the field. In one embodiment of the present invention, the object includes N marking bits numbered 0, 1, 2, . . . , N-1 and M fields numbered 0, 1, 2, . . . , M-1. In this embodiment, the system identifies the marking bit associated with the field by starting with a field number for the field, and applying a modulo N operation to the field number to produce a number for the associated marking bit. In a variation on this embodiment, N is a power of two.
申请公布号 US6453463(B1) 申请公布日期 2002.09.17
申请号 US19990327397 申请日期 1999.06.07
申请人 SUN MICROSYSTEMS, INC. 发明人 CHAUDHRY SHAILENDER;TREMBLAY MARC
分类号 G06F9/38;(IPC1-7):G06F9/446 主分类号 G06F9/38
代理机构 代理人
主权项
地址