DocumentCode
2030092
Title
File-based sharing for dynamically compiled code on Dalvik virtual machine
Author
Huang, Yao-Chih ; Chen, Yu-Sheng ; Yang, Wuu ; Shann, Jean Jyh-Jiun
Author_Institution
Dept. of Comput. Sci., Nat. Chiao Tung Univ., Hsinchu, Taiwan
fYear
2010
fDate
16-18 Dec. 2010
Firstpage
489
Lastpage
494
Abstract
Memory footprint is considered as an important design issue for embedded systems. Sharing dynamically compiled code among virtual machines can reduce memory footprint and recompilation overhead. On the other hand, sharing writable native code may cause security problems, due to support of native function call such as Java Native Interface (JNI). We propose a native-code sharing mechanism that ensures the security for Dalvik virtual machine (VM) on the Android platform. Dynamically generated code is saved in a file and is shared with memory mapping when other VMs need the same code. Protection is granted by controlling of file writing permissions. To improve the security, we implement a daemon process, named Query Agent, to control all accesses to the native code and maintain all the information of traces, which are the units of the compilation in the Dalvik VM. We implement our code sharing mechanism on Android version 2.1 system, and experiment on an arm-based system. We get 45% code-cache size reduction and 9% performance improvement from eliminating recompilation overhead.
Keywords
Java; embedded systems; peer-to-peer computing; program compilers; security of data; virtual machines; Dalvik Virtual Machine; Java native interface; android version 2.1 system; arm-based system; dynamically compiled code; embedded system; file-based sharing; memory footprint; memory mapping; query agent; writable native code; Embedded systems; Java; Libraries; Security; Virtual machining; Writing; Android; JIT Compiler; JNI; Virtual Machine; code sharing; memory footprint;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Symposium (ICS), 2010 International
Conference_Location
Tainan
Print_ISBN
978-1-4244-7639-8
Type
conf
DOI
10.1109/COMPSYM.2010.5685462
Filename
5685462
Link To Document