文档详情

支持复合对象的Java虚拟机内存管理技术研究..doc

发布:2017-01-12约6.12千字共7页下载文档
文本预览下载声明
支持复合对象的Java虚拟机内存管理技术研究 陈灏,陈榕 (同济大学基础软件工程中心,上海,200092) 摘要:CAR是一种二进制构件技术,Elastos是CAR技术的软件生态环境,是CAR构件的运行时环境。Elastos的表现形式是操作系统或中间件,它简化了在高度分布式环境中的应用程序开发。Java程序依赖Java虚拟机解释执行,在性能上不如可以编译执行的本地代码,软件尺寸、功耗等表现也不如本地代码。本文在基于Google的开源工程Dalvik基础上,结合CAR和Java虚拟机技术,在Elastos平台上提出了一种Java和CAR混合编程的技术,旨在达到让Java虚拟机上运行CAR构件目的的同时,利用CAR构件提高Java程序的运行速度而不破坏Java的编程模型,从而起到优化JAVA运行时的目的。 关键词:Java;Java虚拟机;CAR构件;Elastos;Dalvik The Research of Dalvik’s Memory Management with supporting Compound Objects CHEN Hao,CHEN Rong (System Software Engineering Centre,Tongji University,Shanghai 200092,China) Abstract: CAR is a binary component technology, and Elastos is a software environment based on CAR technology, the running enviroment of CAR Component. Elastos represents as operating system or middleware, and treats the net as computing and storing resources. This make the application development easily in distributed network enviroment. Java is a cross-platform language, this feature depends on the Java virtual machine to satisfy The Java Virtual Machine Specification on the specific platform. Java program have to be interpreted before being executed on Java virtual machine, then its performance, power and size can hardly be accomplished with native code. This paper presents a technology called JavaCAR mixed programming model, which is base on dalvik, the Google’s open-source project, simultaneously take CAR and Java virtual machine technology into consideration. The JavaCAR let CAR cooperate with Java virtual machine, this will make the Java program work more effectively but needn’t change the Java programming model. Key Words: Java; Java Virtual Machine; CAR Component; Elastos; Dalvik 1 什么是复合对象 对象是人们要进行研究的任何事物,从最简单的整数到复杂的飞机等均可看作对象,它不仅能表示具体的事物,还能表示抽象的规则、计划或事件。对象具有可以用数据值来描述的状态和用于改变对象状态的操作,对象实现了数据和操作的结合,使数据和操作封装于对象的统一体中,而具有相同特性(数据)和行为(操作)的对象的抽象就是类。面向对象技术则是把客观世界细分成对象,组成对象系统,直观、自然地描述客观世界中的事物。其具有抽象性、封装性、继承性和多态性的基本特征。 复合对象的定义 从对象功能角度讲,我们常见的对象有下面几种:(1)JavaScript的Prototype技术,其通过动态增加B对象为A对象的属性来将二者组合为一个复合对象,其对
显示全部
相似文档