Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine

JNI in the Android platform is often observed with low efficiency and high coding complexity. Although many researchers have investigated the JNI mechanism, few of them solve the efficiency and the complexity problems of JNI in the Android platform simultaneously. In this paper, a hybrid polylingual...

Full description

Saved in:
Bibliographic Details
Main Authors: Yukun Huang, Rong Chen, Jingbo Wei, Xilong Pei, Jing Cao, Prem Prakash Jayaraman, Rajiv Ranjan
Format: Article
Language:English
Published: Wiley 2014-01-01
Series:The Scientific World Journal
Online Access:http://dx.doi.org/10.1155/2014/785434
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1832548457790832640
author Yukun Huang
Rong Chen
Jingbo Wei
Xilong Pei
Jing Cao
Prem Prakash Jayaraman
Rajiv Ranjan
author_facet Yukun Huang
Rong Chen
Jingbo Wei
Xilong Pei
Jing Cao
Prem Prakash Jayaraman
Rajiv Ranjan
author_sort Yukun Huang
collection DOAJ
description JNI in the Android platform is often observed with low efficiency and high coding complexity. Although many researchers have investigated the JNI mechanism, few of them solve the efficiency and the complexity problems of JNI in the Android platform simultaneously. In this paper, a hybrid polylingual object (HPO) model is proposed to allow a CAR object being accessed as a Java object and as vice in the Dalvik virtual machine. It is an acceptable substitute for JNI to reuse the CAR-compliant components in Android applications in a seamless and efficient way. The metadata injection mechanism is designed to support the automatic mapping and reflection between CAR objects and Java objects. A prototype virtual machine, called HPO-Dalvik, is implemented by extending the Dalvik virtual machine to support the HPO model. Lifespan management, garbage collection, and data type transformation of HPO objects are also handled in the HPO-Dalvik virtual machine automatically. The experimental result shows that the HPO model outweighs the standard JNI in lower overhead on native side, better executing performance with no JNI bridging code being demanded.
format Article
id doaj-art-514d30b826b4444684c49858ce69e971
institution Kabale University
issn 2356-6140
1537-744X
language English
publishDate 2014-01-01
publisher Wiley
record_format Article
series The Scientific World Journal
spelling doaj-art-514d30b826b4444684c49858ce69e9712025-02-03T06:14:00ZengWileyThe Scientific World Journal2356-61401537-744X2014-01-01201410.1155/2014/785434785434Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual MachineYukun Huang0Rong Chen1Jingbo Wei2Xilong Pei3Jing Cao4Prem Prakash Jayaraman5Rajiv Ranjan6Tongji University, Shanghai 200092, ChinaTongji University, Shanghai 200092, ChinaAcademy of Space Technology, Nanchang University, Nanchang 330031, ChinaTongji University, Shanghai 200092, ChinaShanghai Kortide Century Technology, Shanghai 201203, ChinaCSIRO, Canberra, ACT 2601, AustraliaCSIRO, Canberra, ACT 2601, AustraliaJNI in the Android platform is often observed with low efficiency and high coding complexity. Although many researchers have investigated the JNI mechanism, few of them solve the efficiency and the complexity problems of JNI in the Android platform simultaneously. In this paper, a hybrid polylingual object (HPO) model is proposed to allow a CAR object being accessed as a Java object and as vice in the Dalvik virtual machine. It is an acceptable substitute for JNI to reuse the CAR-compliant components in Android applications in a seamless and efficient way. The metadata injection mechanism is designed to support the automatic mapping and reflection between CAR objects and Java objects. A prototype virtual machine, called HPO-Dalvik, is implemented by extending the Dalvik virtual machine to support the HPO model. Lifespan management, garbage collection, and data type transformation of HPO objects are also handled in the HPO-Dalvik virtual machine automatically. The experimental result shows that the HPO model outweighs the standard JNI in lower overhead on native side, better executing performance with no JNI bridging code being demanded.http://dx.doi.org/10.1155/2014/785434
spellingShingle Yukun Huang
Rong Chen
Jingbo Wei
Xilong Pei
Jing Cao
Prem Prakash Jayaraman
Rajiv Ranjan
Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
The Scientific World Journal
title Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
title_full Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
title_fullStr Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
title_full_unstemmed Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
title_short Hybrid PolyLingual Object Model: An Efficient and Seamless Integration of Java and Native Components on the Dalvik Virtual Machine
title_sort hybrid polylingual object model an efficient and seamless integration of java and native components on the dalvik virtual machine
url http://dx.doi.org/10.1155/2014/785434
work_keys_str_mv AT yukunhuang hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine
AT rongchen hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine
AT jingbowei hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine
AT xilongpei hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine
AT jingcao hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine
AT premprakashjayaraman hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine
AT rajivranjan hybridpolylingualobjectmodelanefficientandseamlessintegrationofjavaandnativecomponentsonthedalvikvirtualmachine