发明名称 Method and program for recording object allocation site
摘要 A method, system, and program for recording an object allocation site. In the structure of an object, a pointer to a class of an object is replaced by a pointer to an allocation site descriptor which is unique to each object allocation site, a common allocation site descriptor is used for objects created at the same allocation site, and the class of the object is accessed through the allocation site descriptor.
申请公布号 US9021496(B2) 申请公布日期 2015.04.28
申请号 US201313940570 申请日期 2013.07.12
申请人 International Business Machines Corporation 发明人 Kawachiya Kiyokuni;Odaira Rei;Onodera Tamiya
分类号 G06F9/46;G06F9/44;G06F12/02 主分类号 G06F9/46
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;Zarick Gail
主权项 1. A method of recording an allocation site for an object to reduce memory overhead in electronic memory, comprising: replacing a pointer included in an object structure of said object and pointing to a class of said object with a pointer to an allocation site descriptor which includes information on an allocation site at which said object is created and a pointer to said class of said object; using a common allocation site descriptor for objects created at a same allocation site; and accessing said class of said object by referring to said pointer to said class in said allocation site descriptor, wherein a region in which said pointer to said class of said object is recorded for the use of the allocation is used as said allocation site descriptor, wherein in a case where said region in which said pointer to said class of said object is recorded does not exist, a self pointer which is a pointer to said class itself is used as said allocation site descriptor, and wherein a number of classes is less than a number of allocation sites such that the memory overhead of the electronic memory is reduced.
地址 Armonk NY US