发明名称 Using versioned pointers to facilitate reusing memory with a reduced need to reclaim objects through garbage collection
摘要 One embodiment of the present invention provides a system that uses versioned pointers to facilitate reusing memory without having to reclaim the objects solely through garbage collection. The system operates by first receiving a request to allocate an object. Next, the system obtains the object from a pool of free objects, and sets an allocated/free flag within the object to indicate that the object is allocated. The system also increments a version number within the object, and also encodes the version number into a pointer for the object. The system then returns the pointer, which includes the encoded version number. In this way, subsequent accesses to the object through the pointer can compare the version number encoded in the pointer with the version number within the object to determine whether the object has been reused since the pointer was generated.
申请公布号 US8051267(B1) 申请公布日期 2011.11.01
申请号 US20050054508 申请日期 2005.02.09
申请人 ORACLE AMERICA, INC. 发明人 CHASE DAVID R.
分类号 G06F17/00;G06F17/30 主分类号 G06F17/00
代理机构 代理人
主权项
地址