DocumentCode
2900570
Title
Efficient Java Native Interface for Android Based Mobile Devices
Author
Lee, Yann-Hang ; Chandrian, Preetham ; Li, Bo
Author_Institution
Sch. of Comput., Inf., & Decision Syst. Eng., Arizona State Univ. T, Tempe, AZ, USA
fYear
2011
fDate
16-18 Nov. 2011
Firstpage
1202
Lastpage
1209
Abstract
Java has been making its way into the embedded systems and mobile devices like Android. The Java platform specifies the Java Native Interface (JNΓ) which allows Java code that runs within a JVM to interoperate with applications or libraries that are written in other languages and compiled to the host CPU. JNI plays an important role in embedded system as it provides a mechanism to interact with libraries specific to the platform and to take the advantage of fast execution of native programs. To address the overhead incurred in the JNI due to reflection and serialization, this paper proposes to cache class, field, and method information obtained from reflection for subsequent usage. It also provides a function to pin objects to their memory locations such that they can be accesses through the known reference. The Android emulator is used to evaluate the performance of these techniques and we observed that there was 1030 % performance gain in the Java Native Interface for two Android applications.
Keywords
Java; embedded systems; mobile computing; operating systems (computers); user interfaces; Android based mobile devices; CPU; JNI; JVM; Java native interface; embedded system; memory locations; Androids; Arrays; Java; Libraries; Linux; Reflection; Smart phones; Android; JNI; embedded software;
fLanguage
English
Publisher
ieee
Conference_Titel
Trust, Security and Privacy in Computing and Communications (TrustCom), 2011 IEEE 10th International Conference on
Conference_Location
Changsha
Print_ISBN
978-1-4577-2135-9
Type
conf
DOI
10.1109/TrustCom.2011.162
Filename
6120955
Link To Document