Method and apparatus for hybrid stack walking
Abstract
In one embodiment, a method and apparatus for stack walking a call stack associated with mixed code, by interleaving a native stack walking process with a managed stack walking process. Mixed code comprises at least one managed instruction and at least one native instruction, and the call stack comprises at least one managed frame and at least one native frame. The managed frames being associated with the managed instructions, and the native frames being associated with native instructions. The method comprises acts of performing a managed stack walk on the call stack, a native stack walk on native frames of the call stack. In a further embodiment, handling indirect jumps during a native stack walk, and in another embodiment, detecting validity of a memory address.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of stack walking a call stack associated with mixed code, wherein the mixed code comprises at least one managed instruction and at least one native instruction, the method comprising the acts of: providing a call stack comprising at least one managed frame and at least one native frame, the at least one managed frame being associated with a first function having at least one managed instruction, the managed frame containing a first return address, and the at least one native frame being associated with a second function having at least one native instruction, the native frame containi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (5)
- Acheson et al., "Hosting the .NET Runtime in Microsoft SQL Server", Jun. 2004, SIGMOD '04: Proceedings of the 2004 ACM SIGMOD international conference on Management of data , pp. 1-6, http://delivery.acm.org/10.1145/1010000/1007669/p860-acheson.pdf?key1=1007669&key2=2325284021&coll=ACM&dl=ACM&CFID=5
- David Broman, "David Broman's CLR Profiling API Blog", pp. 1-12, MSDN Blogs; http://blogs.msdn.com/davbr/archive/2005/10/06/478006.aspx.
- Kate Gregory, "Managed, Unmanaged, Native: What Kind of Code Is This?" http://www.codeguru.com/csharp/.net/cpp-managed/article.php/c4871, Apr. 28, 2003, pp. 1-2.
- Paul et al., ".NET Security: Lessons Learned and Missed from Java",Computer Security Applications Conference, 2004. 20th Annual Dec. 6-10, 2004 pp. 272-281, http://ieeexplore.ieee.org/iel5/9473/30059/01377234.pdf?tp=arnumber=1377234&isnumber=30059.
- Wikipedia, definition for "NOP", http://en.wikipedia.org/wiki/NOP.