发明名称 MANAGING OBJECT LIFETIME FOR NATIVE/MANAGED PEERS
摘要 A system that manages lifetime of an object is provided. The system analyzes references on multiple objects to determine reachability of a native peer and dynamically transitions between native and managed object lifetime management systems based on the analysis. When a native peer is not reachable by a native application reference, the system weakens references to a managed peer avoiding memory leaks and clones the native references to the managed side to avoid premature collection. The system performs an optimized cleanup during object system shutdown wherein the references between managed and native peers are released and SafeHandles are suppressed from finalization. The system employs a pending remove list that stores a reference to a weak reference of a managed peer to eliminate race conditions that occur during finalization.
申请公布号 US2008270482(A1) 申请公布日期 2008.10.30
申请号 US20070741549 申请日期 2007.04.27
申请人 MICROSOFT CORPORATION 发明人 HILLBERG MICHAEL J.;MICHAIL ASHRAF A.;PARIKH SUJAL S.
分类号 G06F17/00;G06F17/30 主分类号 G06F17/00
代理机构 代理人
主权项
地址