Invention Grant
- Patent Title: Garbage collection extensibility via managed code
- Patent Title (中): 垃圾收集可扩展性通过托管代码
-
Application No.: US12893129Application Date: 2010-09-29
-
Publication No.: US08566368B2Publication Date: 2013-10-22
- Inventor: Davide Massarenti
- Applicant: Davide Massarenti
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Agency: Ogilvie Law Firm
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06F17/30

Abstract:
A garbage collector includes a core, and extension handlers to support collection of objects of a designated managed class. The handler, which may be implemented in managed code, receives notification of garbage collection phases, and receives control from the core when the core encounters an object of the designated class. The handler can then thread together discovered objects of the designated class, walk a list of objects and detect whether any are unreachable, and/or provide an executor for the designated class. The core notifies handlers about progress in tracing strong pointers, tracing weak pointers, pointer update, pinning, weak pointer forwarding, and untraced pointer relocation. A pointer can be marked as untraced, so the core ignores it during pointer tracing phases. If the core encounters an object which has a weak pointer field, the core can pass control to a handler's tracing method. The core may perform generational garbage collection.
Public/Granted literature
- US20120078982A1 Garbage Collection Extensibility Via Managed Code Public/Granted day:2012-03-29
Information query