Patents
US 7,574,702 B2#22251727 Most CitedExpiredUnited States (USPTO)Utility

Method and apparatus for hybrid stack walking

5Forward Citations (#22251727 Global)
0.3/yrCitation Velocity (#26374728 Global)
1.21Citation PageRank (#31742108 Global)
18Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (18)

PatentTitleYearCitations
US 6,415,381 B1Mixed execution stack and exception handling200217
US 6,442,751 B1Determination of local variable type and precision in the presence of subroutines200267
US 6,513,156 B2Interpreting functions utilizing a hybrid of virtual and native machine instructions200342
US 6,560,774 B1Verifier to check intermediate language2003213
US 2004083460 A1Forward walking through binary code to determine offsets for stack walking—74
US 6,754,890 B1Method and system for using process identifier in output file names for associating profiling data with multiple sources of profiling data2004146
US 6,766,513 B2Method and system of memory management using stack walking200415
US 6,898,611 B1Declarative pinning200529
US 6,904,594 B1Method and system for apportioning changes in metric variables in an symmetric multiprocessor (SMP) environment200575
US 2005183068 A1Correlating trace events—33
US 2006070044 A1Method and apparatus for executing different Java methods—22
US 2006101032 A1Mixed types—21
US 2006101412 A1Method to bridge between unmanaged code and managed code—20
US 7,114,150 B2Apparatus and method for dynamic instrumenting of code to minimize system perturbation200638
US 7,178,132 B2Forward walking through binary code to determine offsets for stack walking200726
US RE39519 EMixed execution stack and exception handling20079
US 7,380,242 B2Compiler and software product for compiling intermediate language bytecodes into Java bytecodes200814
US 7,389,497 B1Method and system for tracing profiling information using per thread metric variables with reused kernel threads200867

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.