File-based sharing for dynamically compiled code on Dalvik virtual machine

Yao Chih Huang*, Yu Sheng Chen, Wuu Yang, Jyh-Jiun Shann

*此作品的通信作者

研究成果: Conference contribution同行評審

5 引文 斯高帕斯(Scopus)

摘要

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.

原文English
主出版物標題ICS 2010 - International Computer Symposium
頁面489-494
頁數6
DOIs
出版狀態Published - 2010
事件2010 International Computer Symposium, ICS 2010 - Tainan, 台灣
持續時間: 16 12月 201018 12月 2010

出版系列

名字ICS 2010 - International Computer Symposium

Conference

Conference2010 International Computer Symposium, ICS 2010
國家/地區台灣
城市Tainan
期間16/12/1018/12/10

指紋

深入研究「File-based sharing for dynamically compiled code on Dalvik virtual machine」主題。共同形成了獨特的指紋。

引用此