Declarative pinning
Abstract
A system and method is provided for efficiently pinning references to the managed heap. The system and method allow for references to managed objects to be declared as pinned during a call to unmanaged code. The references are then reported as pinned to a garbage collector in response to invocation of a garbage collection service. The reference can be declared as pinned by a programmer within the source code or automatically invoked at run-time based on an unsafe condition. The garbage collection service will not move or relocate objects that are referenced by the active pinned local variables. If a garbage collection does not occur, the fact that the local variables are declared pinned is ignored.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 42 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer storage device having stored computer-executable instructions which, when executed by one or more processors of a computing system, implement a method comprising: executing code corresponding to at least one program; storing objects on a memory heap during execution of the code; storing references to the objects in a process stack during execution of the code; in response to an invocation of a call from managed code to unmanaged code that passes at least one reference to at least one object on the memory heap from the managed code to the unmanaged code to be used by the unmanaged co
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (42)
Non-Patent Literature (5)
- Fred Brown, "Incremental Garbage Collection in Massive Object Stores", Proceedings of the 24th Ausralasian Conference on Computer Science, pp. 38-46, 2001.
- G. Rodriquez-Rivera et al., "Conservative Garbage Collection for General Memory Allocators", SIGPLAN Notices, vol. 36, No. 1, Jan. 2001, pp. 71-79.
- J. Richter, "Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework", MSDN Magazine, Jan. 9, 2001, 18 pages.
- L. Amsaleg et al., "Garbage Collection for a Client-Server Persistent Object Store", ACM Transactions on Computer Systems, vol. 17, No. 3, Aug. 1999, pp. 153-201.
- M. Rezaei et al., "A New Implementation Technique for Memory Management", Proceedings of the IEEE SoutheastCon 2000, ‘Preparing for the New Millennium’, 2000, pp. 332-339.