Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Java virtual machine execution engine supporting hybrid mode execution

A java virtual machine and execution engine technology, applied in software simulation/interpretation/simulation, program control design, instrumentation, etc., can solve problems such as increasing code storage resources and complicating real-time compilers

Active Publication Date: 2011-11-09
FUDAN UNIV
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, compared to the original bytecode, the amount of code generated by the just-in-time compiler will increase several times, thereby increasing the storage resources occupied by the code, which is unacceptable for embedded settings with limited storage resources
Besides that, interpreters are simple to implement, while just-in-time compilers are more complicated
[0004] It can be seen that the current Java virtual machine execution engine lacks an execution engine that can obtain good performance and faster execution speed without causing excessive expansion of program code.

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
  • Java virtual machine execution engine supporting hybrid mode execution
  • Java virtual machine execution engine supporting hybrid mode execution
  • Java virtual machine execution engine supporting hybrid mode execution

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Each part of the present invention will be described in detail below in the form of an embodiment, showing the process of mixed mode execution (see the Java source code fragment for the embodiment figure 2 ).

[0033] Step 1. Mark the method according to the distribution strategy

[0034] The purpose of this step is to mark the method and bind the execution engine. The method may be marked as: (1) interpreter; (2) just-in-time compiler. by figure 2 Take the code snippet in as an example, assuming a given distribution strategy, methodAmethodC and methodG are marked as interpreter methods, and methodB and methodE are marked as just-in-time compiler methods. For methodD and methodF, the virtual machine marks them as native methods. methodD internally calls methodE, and methodF internally calls methodG. According to the marking result, the present invention installs the entry code stub (Code Stub) of the execution engine corresponding to the mark for each marked met...

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 compiling operation environment design, and in particular relates to a Java virtual machine execution engine supporting hybrid mode execution. The Java virtual machine execution engine comprises a class loader, a Java method dispatcher, an interpreter, a just-in-time compiler and a Java local method interface, wherein the Java method dispatcher is stored in the class loader of a virtual machine and is responsible for routing different methods executed in an entire program to different engines to execute according to a dispatch strategy; and designing a method call bridge between the interpreter execution mode and the just-in-time compiler execution mode, between the Java local method interface execution mode and the interpreter execution mode and between the Java local method interface execution mode and the just-in-time compiler execution mode respectively, thereby realizing hybrid mode execution of the method.

Description

technical field [0001] The invention belongs to the technical field of Java compilation and running environment design, and specifically relates to a Java virtual machine execution engine, including Java class loading, Java local method interface, bytecode interpreter and instant compiler, and their collaboration. Background technique [0002] The execution engine is a functional component where the program code is executed and the program logic is realized. For the Java language, its execution engine is a functional component in the Java Virtual Machine (Java Virtual Machine) used to execute the bytecode compiled by the Java static compiler from the Java source code. The Java execution engine is the core component of Java virtualization. [0003] A Java virtual machine generally has two execution engines, an interpreter (Interpreter) and a just-in-time compiler (Just-In-Time Compiler). The principle of the interpreter executing the Java program is to interpret the semanti...

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
IPC IPC(8): G06F9/45G06F9/455
Inventor 杨珉张源周波朱东来
Owner FUDAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products