Method and apparatus for handling exceptions during binding to native code
Abstract
A target computing system performs program code conversion from subject code, executable by a subject computing architecture, into target code executable by the target computing system, and then executes the target code. The target system handles exceptions during binding to native code. Native code binding executes a portion of native code in place of translating a portion of the subject code into the target code. Upon an exception during execution of the portion of native code, the target system saves a target state representing a current point of execution for the portion of native code, and creates a subject state representing an emulated point of execution in the subject architecture. A subject exception handler handles the exception with reference to the subject state. Upon resuming execution from the exception using the subject state, the saved target state is restored to resume execution in the section of portion of native code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 42 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of handling an exception signal in a computing system, comprising the steps of: (a) performing program code conversion to convert subject code executable by a subject computing architecture into target code executable by the computing system; (b) executing a portion of native code which is native to the computing system in substitution for translating a portion of the subject code into the target code; (c) in response to an exception signal arising during execution of the portion of native code, performing the steps of: (i) saving a target state which represents a current point of exe
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (42)
Non-Patent Literature (5)
- Czajkowski et al., "Automated and Portable Native Code Isolation", Apr. 2001, Sun Microsystem, Inc., pp. 1-15; .
- Czajkowski et al., "Automated and Portable Native Code Isolation", Apr. 2001, Sun Microsystem, Inc., pp. 1-15; <http://labs.oracle.com/techrep/2001/smli—tr-2001-96.pdf>.
- International Search Report from International Application No. PCT/GB2007/050343 mailed Sep. 24, 2007.
- Li et al., "JET-Exception Checking in the Java Native Interface", 2011 ACM, OOPSLA'11, Oct. 22-27, 2011, Portland, Oregon, USA, pp. 1-13; .
- Li et al., "JET—Exception Checking in the Java Native Interface", 2011 ACM, OOPSLA'11, Oct. 22-27, 2011, Portland, Oregon, USA, pp. 1-13; <http://dl.acm.org/citation.cfm?id=2048066.2048095&coll=DL&dl=GUIDE&CFID=174032729&CFTOKEN=83806895>.