Efficient Java']Java Native Interface for Android Based Mobile Devices

被引:6
作者
Lee, Yann-Hang [1 ]
Chandrian, Preetham [1 ]
Li, Bo [1 ]
机构
[1] Arizona State Univ, Sch Comp Informat & Decis Syst Engn, Tempe, AZ 85287 USA
来源
TRUSTCOM 2011: 2011 INTERNATIONAL JOINT CONFERENCE OF IEEE TRUSTCOM-11/IEEE ICESS-11/FCST-11 | 2011年
关键词
D O I
10.1109/TrustCom.2011.162
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Java has been making its way into the embedded systems and mobile devices like Android. The Java platform specifies the Java Native Interface (JNI) 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 10-30 % performance gain in the Java Native Interface for two Android applications.
引用
收藏
页码:1202 / 1209
页数:8
相关论文
共 14 条
[1]  
Binder W, 2006, I S WORKL CHAR PROC, P201
[2]  
Bubak M., 2000, P 1 WORLDW SGI US C, P283
[3]  
Cazzola Walter, P 2004 ACM S APPL CO, P1305
[4]  
Chang Chi-Chao, JAV 99 P ACM 1999 C, P51
[5]  
Chen Miaobo, P INT S COD GEN OPT, P65
[6]  
Domani Tamar, P 3 INT S MEM MAN IS, P76
[7]  
Ehringer David, DALVIK VIRTUAL MACHA
[8]   Development Platforms for Mobile Applications: Status and Trends [J].
Gavalas, Damianos ;
Economou, Daphne .
IEEE SOFTWARE, 2011, 28 (01) :77-86
[9]  
Hirzel Martin, 2007, PROGRAMMING LANGUAGE, V29
[10]  
Hirzel Martin, P 22 ACM SIGPLAN C O, P19