发明名称 Method and System to Space-Efficiently Track Memory Access of Object-Oriented Language in Presence of Garbage Collection
摘要 The present invention provides a method and system for processing memory access events. The method comprises: executing an extended program including instrumented memory tracking code for tracking memory access events of a plurality of objects; allocating a unique identifier for each of the plurality of tracked objects; creating a weak reference for each of the plurality of tracked objects, wherein a mapping relationship is established between the identifier of the weak reference and that of the corresponding tracked object; recording and storing the memory access events of the plurality of tracked objects; in response to receiving a notification of memory garbage collection which includes an identifier of a weak reference of a collected object, determining the identifier of the collected object based on the mapping relationship between the identifier of the weak reference and that of the corresponding tracked object, and searching the stored memory access events for the memory access events of the collected object; and deleting the memory access events of the collected object. The storage overhead may be reduced according to the above method of the present invention.
申请公布号 US2010114999(A1) 申请公布日期 2010.05.06
申请号 US20090610111 申请日期 2009.10.30
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 QI YAO
分类号 G06F12/02;G06F12/00 主分类号 G06F12/02
代理机构 代理人
主权项
地址