Redundant exception handling code removal
Abstract
A system performs operations comprising creating a call graph for a program translated from source code, identifying redundant exception handling code in the program utilizing the call graph, and removing the redundant exception handling code. The operation of identifying redundant exception handling code may comprise identifying at least one function or callsite by determining that a first function in the at least one function's or callsite's callee chain throws an exception and that the exception is handled by a second function in the function's or callsite's callee chain or by determining that an exception is not thrown in the at least one function's or callsite's callee chain. The operation of removing the redundant exception handling code may comprise removing redundant exception handling code included in at least one function or callsite and/or removing at least one entry for the at least one function or callsite from an exception lookup table.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 5.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A computer-implemented method, comprising: creating a call graph for a program that has been translated from source code; marking a function in the call graph if the function throws at least one exception; analyzing the call graph to identify redundant exception handling code in the program by: identifying at least one function which includes at least a portion of the redundant exception handling code by determining that an exception is not thrown in a callee chain corresponding to the at least one function by determining that the callee chain does not include a marked function; and removing t
- Claim 2Depends on #1
The computer-implemented method of claim 1 , wherein said removing the redundant exception handling code from the program comprises: removing the portion of the redun
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 (13)
Non-Patent Literature (4)
- Jeff Bogda et al., Removing Unnecessary Synchronization in Java, ACM 1999, [Retrieved on Dec. 21, 2012]. Retrieved from the Internet: <URL: http://dl.acm.org/citation.cfm?id=320388> 112 pages. (35-46).
- Jeff Bogda et al., Removing Unnecessary Synchronization in Java, ACM 1999, [Retrieved on Dec. 21, 2012]. Retrieved from the Internet: 112 pages. (35-46).
- Takeshi Ogasawara et al., A Study of Exception Handling and Its Dynamic Optimization in Java, ACM 2001, [Retrieved on Dec. 21, 2012]. Retrieved from the internet: <URL: http://dl.acm.org/citation.cfm?id=504289> 13 pages. (83-95).
- Takeshi Ogasawara et al., A Study of Exception Handling and Its Dynamic Optimization in Java, ACM 2001, [Retrieved on Dec. 21, 2012]. Retrieved from the internet: 13 pages. (83-95).