发明名称 Using three-state references to manage garbage collection of referenced objects
摘要 The present invention uses three-state references to manage access to referenced objects. In a preferred embodiment, a pointer swizzling facility receives a request to swizzle a persistent pointer. In response to the request, the facility copies the persistent pointer to an indirection slot, and replaces the original persistent pointer with a smart pointer containing a pointer to the indirection slot. When the facility subsequently detects an attempt to dereference the smart pointer, the facility loads the referenced object using the persistent pointer stored in the indirection slot pointed to by the smart pointer. The facility further replaces the persistent pointer in the indirection slot with a pointer to the loaded referenced object. The facility also replaces the pointer to the indirection slot in the smart pointer with a pointer to the loaded dereferenced object. Finally, the facility dereferences the pointer to the loaded referenced object in response to the attempt to dereference the smart pointer.
申请公布号 US6105041(A) 申请公布日期 2000.08.15
申请号 US19980082509 申请日期 1998.05.21
申请人 MICROSOFT CORPORATION 发明人 BENNETT, JOHN G.;DALAL, KETAN
分类号 G06F12/00;G06F9/44;G06F12/02;G06F17/30;(IPC1-7):G06F17/30 主分类号 G06F12/00
代理机构 代理人
主权项
地址