Unlock instant, AI-driven research and patent intelligence for your innovation.

An Exception Handling Method Working in a Mixed-Mode Execution Engine

A hybrid mode, execution engine technology, applied in the field of exception handling

Inactive Publication Date: 2011-11-30
FUDAN UNIV
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In general, there are different implementations of exception handling mechanisms, but these implementations are only for non-hybrid execution mode of work

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An Exception Handling Method Working in a Mixed-Mode Execution Engine
  • An Exception Handling Method Working in a Mixed-Mode Execution Engine
  • An Exception Handling Method Working in a Mixed-Mode Execution Engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The present invention designs and implements the above-mentioned exception handling mechanism working in the mixed-mode execution engine. This section makes a detailed introduction to the specific implementation of the framework. The introduction is carried out by example, and the code of the sample body is shown in the appendix. The program directly calls nestFunc in the main function, which will be dynamically compiled and executed by the dynamic compiler; the nestFunc function will call the interpFunc function, which will be interpreted and executed by the interpreter; finally, the interpFunc function will call ExceptionThrowFunc. ExceptionThrowFunc is also dynamically compiled and executed by the dynamic compiler. In this function, a runtime exception will be thrown for the Try-Catch in the outermost main function to catch.

[0042] When an exception is thrown, the exception will be handled according to the following algorithm. The process of the algorithm is as fol...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention belongs to the technical field of Java compilation and running environment design, and specifically relates to an exception handling method working in a mixed-mode execution engine. Aiming at the mixed working modes of various execution engines existing in the existing Java virtual machine, the present invention formulates corresponding exception handling strategies according to the different characteristics of different execution engines, thereby proposing a novel exception handling method, including finding the first matching The Catch block obtains the Catch block matched by an exception and the information of the function where the Catch block is located through a function call, and changes the execution flow to this Catch block. At the same time, the stack information must be rolled back layer by layer to the function where the Catch block is located. The corresponding stack frame. The invention solves the problem of exception handling in Java virtual machines under various execution engines.

Description

technical field [0001] The invention belongs to the technical field of Java compiling and running environment design, and in particular relates to an exception handling method when different Java execution engines work in a mixed manner. Background technique [0002] The exception handling mechanism is a method commonly used in modern programming languages ​​to improve program reliability. As the most widely used object-oriented programming language, Java also regards the exception handling mechanism as an important aspect of the language specification. [0003] Exceptions are usually divided into two types, runtime exceptions (Runtime Exception) and inspection exceptions (Checked Exception). The former refers to uncertain exceptions that may be thrown during program running, such as Null Pointer (Null Pointer), data subscript out of bounds (ArrayIndex Out Of Bounds), etc.; Exceptions thrown, such as IOException, etc. Exception handling is usually divided into two phases,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F11/14
Inventor 杨珉彭智俊张源
Owner FUDAN UNIV