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

Dalvik virtual machine just-in-time compilation (JIT) acceleration method based on software Cache

A virtual machine and software technology, applied in the field of Android system optimization, can solve the problems of consumption performance improvement, time consumption, etc., to achieve the effect of improving performance, reducing system overhead, and improving hit rate

Inactive Publication Date: 2013-05-08
SOUTHEAST UNIV
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since looking up native code is time-consuming, this consumes part of the performance gain brought by executing native 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
  • Dalvik virtual machine just-in-time compilation (JIT) acceleration method based on software Cache
  • Dalvik virtual machine just-in-time compilation (JIT) acceleration method based on software Cache
  • Dalvik virtual machine just-in-time compilation (JIT) acceleration method based on software Cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] Below in conjunction with specific embodiments, the present invention will be further illustrated, and it should be understood that these embodiments are only used to illustrate the present invention and not to limit the scope of the present invention. The modifications all fall within the scope defined by the appended claims of this application.

[0028] The present invention proposes a Dalvik virtual machine JIT acceleration method based on software Cache:

[0029] Using the hash algorithm as the Cache row index, the software Cache is established. The software Cache adopts a two-way group associative structure before adding the local code hash table;

[0030] Find the local code through the bytecode address, first search in the software Cache, if found, directly access the local code, if not found, look up the local code hash table;

[0031] If the local code is found in the local code hash table, select the software Cache row and fill in the contents of the correspo...

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 discloses a Dalvik virtual machine just-in-time compilation (JIT) acceleration method based on a software Cache. The technical scheme includes that firstly, the software Cache is built in a Dalvik virtual machine, the software Cache adopts two-group connection structure and is added before a local code hash table; secondly, when a local code is found through a bytecode address, the local code is firstly found in the software Cache, when the local code is found out, the local code is directly accessed, when the local code is not found out, the local code is found in the local code hash table, when the local code is found out in the local code hash table, contents in lines of the software Cache are selected and written, when the local code is not found out, a compiling thread is waken up to compile the bytecode into the local code, and the local code hash table and the corresponding lines in the software Cache are simultaneously updated. Due to the fact that times of finding the local code hash table with a complex Hash algorithm in the Dalvik virtual machine are reduced, the Dalvik virtual machine JIT acceleration method based on the software Cache has the advantages of reducing system overhead of finding the local code hash table, thereby improving performance of a whole Android system.

Description

technical field [0001] The invention relates to the technical field of Android system optimization, in particular to a Dalvik virtual machine JIT acceleration method based on software Cache. Background technique [0002] The hardware resources of mobile devices are very limited, which poses a great challenge to the standard Java virtual machine. For example, the standard Java virtual machine uses Class format files as its execution files, but each Class file corresponds to a type of definition information and an independent constant pool, and there will be a lot of redundant information between each Class file. It is undoubtedly a disaster for mobile devices with limited memory resources. The Android system uses the Dalvik virtual machine to run Java applications. The Dalvik virtual machine in the Android system proposes a series of optimization measures for the limited memory resources. Java applications are converted into the compact Dex format, a format designed for th...

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/44G06F9/455
Inventor 刘波凌明程林周晓付卓武建平
Owner SOUTHEAST 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