Memory pinning through buffer encapsulation
Abstract
The present invention extends to methods, systems, and computer program products for memory pinning through buffer encapsulation. Within a managed execution environment, a wrapper object encapsulates a memory buffer that is to be shared with a native routine executing in a native execution environment. The wrapper object manages operation of a memory manager on a memory heap corresponding to the memory buffer. The wrapper object includes a first function which sets a pin on the memory buffer and returns a pointer identifying the memory buffer. Setting the pin causes the memory manager to cease moving the memory buffer within the memory heap. The wrapper object also includes a second function which releases the pin on the memory buffer.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 1.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
At a computer system including one or more processors and system memory, the computer system also including a managed execution environment, a method for pinning a managed memory buffer, the method comprising: an act of instantiating a wrapper object on behalf of a native routine executing in a native execution environment, the wrapper object configured to regulate management of a memory buffer in a managed execution environment; an act of passing a reference to the wrapper object from the managed execution environment to the native routine; an act of receiving a first call from the native rou
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 10,558,566 B2 | Garbage collection of non-pinned objects within heap | 2020 | 0 |
References Cited — Backward Prior Art (3)
Non-Patent Literature (5)
- "Generational GC", Retrieved on: Sep. 30, 2011, Available at: http://www.mono-project.com/Generational-GC.
- "How to: Use the Windows ReadFile Function (C# Programming Guide)", Retrieved on: Sep. 30, 2011, Available at: http://msdn.microsoft.com/en-us/library/2d9wy99d.aspx.
- "NativeOverlapped Structure.NET Framework 4." Retrieved on Oct. 3, 2011, Available at: http//msdn. microsoft.com/en-us/library/system.threading.nativeoverlapped.aspx.
- "Overlapped Class.NET Framework 4." Retrieved on Oct. 3, 2011, Available at: http://msdn.microsoft.com/en-us/library/system.threading.overlapped.aspx.
- Ahuwanya, Sunny, "Buffer Pooling for .NET Socket Operations", Retrieved on: Sep. 30, 2011, Available at: http://www.ahuwanya.net/blog/?tag=/bufferpool.