首页>
外国专利>
Method and System to Space-Efficiently Track Memory Access of Object-Oriented Language in Presence of Garbage Collection
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.
展开▼