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.