Java virtual machine (JVM) and compiling method thereof

A technology of java virtual machine and java method, which is applied in software simulation/interpretation/simulation, instrumentation, calculation, etc. It can solve problems such as time-consuming, server implementation, and control complexity, and achieve the effect of optimizing performance

Inactive Publication Date: 2014-04-16
HUAWEI TECH CO LTD
View PDF8 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage is that a dedicated DedicatedJITCompilationSystem server needs to be set up. The implementation and control of this server are more complicated, and data needs to be transmitted between networks, which takes a long time

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 (JVM) and compiling method thereof
  • Java virtual machine (JVM) and compiling method thereof
  • Java virtual machine (JVM) and compiling method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0036] In order to facilitate understanding of the embodiments of the present invention, several elements that will be introduced in the description of the embodiments of the present invention are firstly introduced here.

[0037] In existing systems, the JVM may include an interpreter, a compiler, and a runtime system. Wherein, the compiler includes a JIT compiler.

[0038] The interpreter is used to make the runtime system interpret the methods of t...

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

An embodiment of the invention provides a Java virtual machine (JVM) and a compiling method thereof. The method includes: after initiating compiling of a first Java method on the Java virtual machine, acquiring multiple methods according to a method counter general table of the Java virtual machine, wherein the multiple methods include the first Java method, and the method counter general table is used for recording current values of method counters of all the Java methods of the Java virtual machine; initiating multiple tasks in parallel to compile the methods, wherein each task in the tasks compiles one of the methods through a JIT (just in time) compiler; after compiling of the methods is completed, refreshing the method counter general table, and replacing method entries, corresponding to the methods, with pointers of local codes of the compiled methods. By the JVM and the compiling method thereof, compiling efficiency of the JVM can be improved at low cost, and performance of the JVM is optimized.

Description

technical field [0001] Embodiments of the present invention relate to the field of computer networks, and more specifically, relate to a method for compiling a Java virtual machine and the Java virtual machine. Background technique [0002] JAVA is currently the software development technology with the most users and the widest range of applications. It gets rid of the shackles of the hardware platform and realizes the ideal of "write once and run everywhere". During this period, the JAVA virtual machine (JVM) can be said to have contributed a lot. [0003] The JAVA program written by the user only needs to be compiled locally into JAVA bytecode (.class file). Then, when the bytecode program is executed on different platforms, the Java virtual machine (JavaVirtualMachine, JVM) on the platform translates the bytecode into platform-related instructions and runs them on the platform. It is precisely because the JVM realizes the separation of the program and the operating syst...

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/455G06F9/45
Inventor 鲍翀王彦茹
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products