共查询到20条相似文献,搜索用时 31 毫秒
1.
Java虚拟机中异常机制实时性的研究及实现 总被引:1,自引:0,他引:1
异常处理机制是程序设计语言的重要特征之一。讨论了对Java异常处理进行实时性改造的可行性和具体方法;并且在Linux平台上;实现了对开源Java虚拟机SableVM中异常处理机制的实时性改造。实验结果表明改进后的虚拟机在异常捕获时间趋于线性的同时;异常表查询效率也得到了提高。 相似文献
2.
3.
4.
Java栈是Java虚拟机中运行时数据区的主要组成部分。大部分虚拟机指令的操作都与Java栈中的框架相关联。该文描述了Java栈在Java虚拟机运行中所起的作用,自行设计了一种Java栈的数据结构,提出了一些具有代表性的字节码指令的实现方法。同时总结了Java栈对虚拟机运行效率的影响。 相似文献
5.
6.
7.
8.
9.
10.
Java语言的一个显著特点是它通过虚拟机和垃圾回收机制管理着大部分的内存事务,但是在Java程序中还是可能存在内存泄漏问题。文中首先对Java内存泄漏做一个简要的定义,接着围绕一个实例详细地介绍如何用工具检测Java内存泄漏,最后列举了一些典型的泄漏,以便读者在Java程序开发中尽量避免类似的内存泄漏。 相似文献
11.
The Java Virtual Machine executes bytecode programs that may have been sent from other, possibly untrusted, locations on the
network. Since the transmitted code may be written by a malicious party or corrupted during network transmission, the Java
Virtual Machine contains a bytecode verifier to check the code for type errors before it is run. As illustrated by reported
attacks on Java run-time systems, the verifier is essential for system security. However, no formal specification of the bytecode
verifier exists in the Java Virtual Machine Specification published by Sun. In this paper, we develop such a specification
in the form of a type system for a subset of the bytecode language. The subset includes classes, interfaces, constructors,
methods, exceptions, and bytecode subroutines. We also present a type checking algorithm and prototype bytecode verifier implementation,
and we conclude by discussing other applications of this work. For example, we show how to extend our formal system to check
other program properties, such as the correct use of object locks.
This revised version was published online in August 2006 with corrections to the Cover Date. 相似文献
12.
首先分析了Sun公司的嵌入式Java虚拟机KVM性能低效的原因,在此基础上引入两种Java虚拟机性能加速技术:JIT和Native线程。通过建立MVM模型,将这两种加速技术融合到了Java虚拟机中,并详细介绍了实现这两种加速技术的关键数据结构和算法。实验结果表明Java虚拟机的性能获得明显的提高。 相似文献
13.
为了对Java虚拟机(JVM)进行测试,开发人员通常需要手工设计或利用测试生成工具生成复杂的测试程序,从而检测JVM中潜在的缺陷。然而,复杂的测试程序给开发人员定位及修复缺陷带来了极高的成本。测试程序约简技术旨在保障测试程序缺陷检测能力的同时,尽可能的删减测试程序中与缺陷检测无关的代码。现有研究工作基于Delta调试在C程序和XML输入上可以取得较好的约简效果,但是在JVM测试场景中,具有复杂语法和语义依赖关系的Java测试程序约减仍存在粒度较粗、约简效果较差的问题,导致约简后的程序理解成本依然很高。因此,针对具有复杂程序依赖关系的Java测试程序,本文提出一种基于程序约束的细粒度测试程序约简方法JavaPruner。首先在语句块级别设计细粒度的代码度量方法,随后在Delta调试技术上引入语句块之间的依赖约束关系来对测试程序进行约简。以Java字节码测试程序为实验对象,通过从现有的针对JVM测试的测试程序生成工具中筛选出具有复杂依赖关系的50个测试程序作为基准数据集,并在这些数据集上验证JavaPruner的有效性。实验结果表明,JavaPruner可以有效删减Java字节码测试程序中的冗余代码。与现有方法相比,在所有基准数据集上约减能力平均可提升37.7%。同时,JavaPruner可以在保障程序有效性及缺陷检测能力的同时将Java字节码测试程序最大约简至其原有大小的1.09% ,有效降低了测试程序的分析和理解成本。 相似文献
14.
The accurate measurement of the execution time of Java bytecode is one factor that is important in order to estimate the total execution time of a Java application running on a Java Virtual Machine. In this paper we document the difficulties and solutions for the accurate timing of Java bytecode. We also identify trends across the execution times recorded for all imperative Java bytecodes. These trends would suggest that knowing the execution times of a small subset of the Java bytecode instructions would be sufficient to model the execution times of the remainder. We first review a statistical approach for achieving high precision timing results for Java bytecode using low precision timers and then present a more suitable technique using homogeneous bytecode sequences for recording such information. We finally compare instruction execution times acquired using this platform independent technique against execution times recorded using the read time stamp counter assembly instruction. In particular our results show the existence of a strong linear correlation between both techniques. 相似文献
15.
16.
多重分派是面向对象语言的一个高级特性,是面向对象程序设计中多态性实现的基础。目前的主流面向对象语言Java与C++都不支持动态多重分派。文章介绍了Java语言现有的分派技术,讨论了为Java语言添加动态多重分派特性的几种途径并对它们的利弊进行比较。文章提出并分析了面向对象语言实现多重分派需要解决的若干问题,最后展望了未来的研究方向。 相似文献
17.
Java Bytecode Verification: Algorithms and Formalizations 总被引:5,自引:0,他引:5
Xavier Leroy 《Journal of Automated Reasoning》2003,30(3-4):235-269
Bytecode verification is a crucial security component for Java applets, on the Web and on embedded devices such as smart cards.
This paper reviews the various bytecode verification algorithms that have been proposed, recasts them in a common framework
of dataflow analysis, and surveys the use of proof assistants to specify bytecode verification and prove its correctness.
This revised version was published online in August 2006 with corrections to the Cover Date. 相似文献
18.
HTML浏览器设计软件体系结构研究 总被引:1,自引:0,他引:1
该文根据数据操作流程,采用模块化程序设计思想,设计了HTML浏览器HWT1.0的软件体系结构。论文依次讲述了该体系结构中数据通信模块、HTML语言解释模块、WEB页面显示模块和人机交互模块的功能及4大模块间的数据接口与消息通信机制。最后讨论了该体系结构在支持中文网址、数据安全性操作及执行Java Applet程序方面的可扩展性。 相似文献
19.
Java卡实现了面向对象技术,这不仅简化了编程,而且使Smart卡成了信息系统的标准组件。 相似文献
20.
Java中内存泄露问题的研究与改进 总被引:1,自引:0,他引:1
Java语言中,内存空间的回收工作由垃圾收集器(GarbageCollector,GC)完成,这种方法减少了应用程序中发生内存泄露的可能性,但GC的工作机制并不完善,仍然存在内存泄露问题。本文针对此问题进行研究分析,并指出了问题产生的原因和改进的方法。 相似文献