Compiling method with exception handling
Abstract
When an execution program is to be compiled, based on information for the inlining of a function in this program, data concerning a lock set is generated for a lock for a resource due to the inlined function. Further, based on the lock data, the data concerning a lock count set upon the execution of code for the target program is added to this program. Then, when an exception has occurred during the execution of the program, the data concerning the lock count is employed to obtain the lock count at the time of execution of the code whereat the exception occurred, and the lock count set at the time of execution of an exception handler for this exception. After the locks for the resource have been released in a number equivalent to a difference between the two lock counts, the process for this exception is initiated.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 17.
Claims (3 — 2 Independent, 1 Dependent)
- Claim 1Independent Claim
A compiling method for converting, into machine language, source code for a target program prepared using a programming language, said method comprising: performing an inlining of a function in said target program and generating information concerning said inlining; generating, based on said information concerning said inlining, lock data concerning a lock set for a resource using said function; and adding, based on said lock data, a lock count set upon execution of an exception handler in said target program.
- Claim 2Depends on #1
A method according to claim 1 , further comprising: preparing a correlation table from which a lock count set upon the execution of said code is extracted by referring to an address for code wherein an exception has occurred, and adding said correlation table as accessory information to said target program.
- Claim 3Independent Claim
A method according to cl
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 17 total)
References Cited — Backward Prior Art (13)
Non-Patent Literature (5)
- David Bacon, "Featherweight Monitors with Bacon Bits", IBM T.J.Watson Research Center, 1997 (17 pages). [Online] [Retrieved at] <www.research.ibm.com/people/ d/dfb/talks/Bacon97FeatherweightTalk.pdf>.
- David F. Bacon et al., Thin Locks: Featherweight Synchronization for Java, Jun. 1998, SIGPLAN Notices vol. 33, No. 6, pp. 1-11.
- Ishizaki et al., "Design, Implementation, and Evaluation of Optimizations in a Just-In-Time Compiler", Java 1999 (pp. 119-128). [Online] [Retrieved at] <aspen.ucs.indiana.edu/CandCPandE/jg99papers>.
- Ogasawara et al. "A Study of Exception Handling and Its Dynamic Optimization in Java", 2001 (14 pages). [Online] [Retrieved at] <citeseer.ist.psu.edu/ogasawara01study/html>.
- Suganuma et al. "Overview of the IBM Java Just-in-Time Compiler", IBM Systems Journal, vol. 39, No. 1, 2000 (pp. 175-193). [Online] [Retrieved at] <citeseer.ist.psu.edu/context/1326616/0>.