Detecting a stalled routine
Abstract
A system is disclosed that can determine whether a routine is stalled. The system does not require the developer of the routine to add code for the purpose of detecting whether the routine is stalled. Furthermore, the system can be used to monitor various routines at different levels of granularity, such as at the thread level, method level, or other levels. One embodiment of the present invention allows a user to specify a method and an expected time frame. Code for that method is modified to add additional code that implements a timing mechanism. The timing mechanism is used to detect when a thread enters that method and does not return within an approximation of the expected time frame. Other embodiments are also within the scope of the present invention.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 28 · Forward citations: 18.
Claims (2 — 2 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for detecting whether a routine has stalled, comprising: accessing existing code for a first routine; automatically modifying said existing code by changing said existing code and adding new code; and using said new code and said changed existing code to determine if said first routine has stalled, wherein said step of automatically modifying comprises: adding object code for a timing mechanism to said existing code, adding a first instruction to said existing code for said first routine, said first instruction causes a starting of said timing mechanism for said first routine, said fi
- Claim 2Independent Claim
A method acc
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 18 total)
References Cited — Backward Prior Art (28)
Non-Patent Literature (4)
- Cohen, Geoff A., Chase, Jeffrey S., Kaminsky, David L., Automatic Program Transformation with JOIE, USENIX Annual Technical Symposium, Jun. 1998.
- Keller, Ralph and Holze, Urs, Binary Component Adaptation, University of California, Technical Report, Dec. 3, 1997.
- Larus, James R., and Schnarr, Eric, EEL: Machine-Independent Executable Editing, SIGPLAN Conference on Programming Language Design and Implementation, Jun. 1995.
- Lee, Han Bok and Zorn, Benjamin G., BIT: A Tool for Instrumenting Java Bytecodes, USITS 97, Dec. 1997.