933 resultados para Java.
Resumo:
Just-in-Time (JIT) compilers for Java can be augmented by making use of runtime profile information to produce better quality code and hence achieve higher performance. In a JIT compilation environment, the profile information obtained can be readily exploited in the same run to aid recompilation and optimization of frequently executed (hot) methods. This paper discusses a low overhead path profiling scheme for dynamically profiling AT produced native code. The profile information is used in recompilation during a subsequent invocation of the hot method. During recompilation tree regions along the hot paths are enlarged and instruction scheduling at the superblock level is performed. We have used the open source LaTTe AT compiler framework for our implementation. Our results on a SPARC platform for SPEC JVM98 benchmarks indicate that (i) there is a significant reduction in the number of tree regions along the hot paths, and (ii) profile aided recompilation in LaTTe achieves performance comparable to that of adaptive LaTTe in spite of retranslation and profiling overheads.
Resumo:
The Java Memory Model (JMM) provides a semantics of Java multithreading for any implementation platform. The JMM is defined in a declarative fashion with an allowed program execution being defined in terms of existence of "commit sequences" (roughly, the order in which actions in the execution are committed). In this work, we develop OpMM, an operational under-approximation of the JMM. The immediate motivation of this work lies in integrating a formal specification of the JMM with software model checkers. We show how our operational memory model description can be integrated into a Java Path Finder (JPF) style model checker for Java programs.
Resumo:
The presence of software bloat in large flexible software systems can hurt energy efficiency. However, identifying and mitigating bloat is fairly effort intensive. To enable such efforts to be directed where there is a substantial potential for energy savings, we investigate the impact of bloat on power consumption under different situations. We conduct the first systematic experimental study of the joint power-performance implications of bloat across a range of hardware and software configurations on modern server platforms. The study employs controlled experiments to expose different effects of a common type of Java runtime bloat, excess temporary objects, in the context of the SPECPower_ssj2008 workload. We introduce the notion of equi-performance power reduction to characterize the impact, in addition to peak power comparisons. The results show a wide variation in energy savings from bloat reduction across these configurations. Energy efficiency benefits at peak performance tend to be most pronounced when bloat affects a performance bottleneck and non-bloated resources have low energy-proportionality. Equi-performance power savings are highest when bloated resources have a high degree of energy proportionality. We develop an analytical model that establishes a general relation between resource pressure caused by bloat and its energy efficiency impact under different conditions of resource bottlenecks and energy proportionality. Applying the model to different "what-if" scenarios, we predict the impact of bloat reduction and corroborate these predictions with empirical observations. Our work shows that the prevalent software-only view of bloat is inadequate for assessing its power-performance impact and instead provides a full systems approach for reasoning about its implications.
Resumo:
Helburuak: Ikasmaterial honen helburu nagusia ikasleek C-ko eta Java-ko klase teorikoetan lantzen dituzten ezagutzak sendotzea da. Norentzat: Programazioari buruzko lehen ezagutzak sendotu nahi dituen edozein ikasleei zuzenduta, baina bereziki telekomunikazio ikasketak egiten ari diren ikasleei.
Resumo:
The effects of El Niño–Southern Oscillation events on catches of Bigeye Tuna (Thunnus obesus) in the eastern Indian Ocean (EIO) off Java were evaluated through the use of remotely sensed environmental data (sea-surface-height anomaly [SSHA], sea-surface temperature [SST], and chlorophyll a concentration), and Bigeye Tuna catch data. Analyses were conducted for the period of 1997–2000, which included the 1997–98 El Niño and 1999–2000 La Niña events. The empirical orthogonal function (EOF) was applied to examine oceanographic parameters quantitatively. The relationship of those parameters to variations in catch distribution of Bigeye Tuna was explored with a generalized additive model (GAM). The mean hook rate was 0.67 during El Niño and 0.44 during La Niña, and catches were high where SSHA ranged from –21 to 5 cm, SST ranged from 24°C to 27.5°C, and chlorophyll-a concentrations ranged from 0.04 to 0.16 mg m–3. The EOF analysis confirmed that the 1997–98 El Niño affected oceanographic conditions in the EIO off Java. The GAM results indicated that SST was better than the other environmental factors (SSHA and chlorophyll-a concentration) as an oceanographic predictor of Bigeye Tuna catches in the region. According to the GAM predictions, the highest probabilities (70–80%) for Bigeye Tuna catch in 1997–2000 occurred during oceanographic conditions during the 1997–98 El Niño event.
Resumo:
同步操作是并发Java序非常大的一部分开销.在现有程序分析方法的基础上,提出了一种精确而有效的冗余同步操作的静态删除方法.该方法分为基本处理和线程间时序分析两个阶段,充分考虑了控制流结构和线程交互时序对同步删除的影响.构造了一个Java译器JTool,并在其上实现了同步删除算法.对于确定的单线程程序,同步删除率达到100%;对于多线程程序,同步删除率高于现有的分析工具.
Resumo:
分析了Java希表的实现特点并给出了导致其性能恶化的一种数据模式.针对这种数据模式的特点,提出了基于素数序列的哈希表优化方法,从而几乎完全避免了该模式下哈希表的性能恶化.实验与理论结果表明:对提出的模式数据,优化方法产生的Hash碰撞比JDK中的方法下降接近100%,而且对随机数据下的Java希表性能也有改善.
Resumo:
介绍了静态分析的相关背景知识,对Java序中数组越界和空指针错误的常见表现形式进行了归类,并通过实验评估了现有的Java态分析工具功能,指出了其在跨过程分析中的不足,并对如何改进进行了讨论.
Resumo:
软件可靠性问题是软件测试中的重要难题之一,由于程序语言的复杂性以及被测程序的多样性,一直没有一个好的可靠性模型来评价它.鉴于此,依据软件可靠性工程理论,参考APLA→JAVA统的特点,提出了一种基于测试的软件可靠性评估模型,讨论了模型的参数评估和置信区间,并给出了模型的评价方案.数据分析表明该模型具有合理性和可行性.
Resumo:
随着Java技术在嵌入式系统中的应用,它的缺点不断暴露,针对这种情况,本文介绍了一种能提高Java性能的嵌入式虚拟机(Jeode),以此来促进嵌入式系统的应用。
Resumo:
描述了一个Java动化的单元测试工具JUTA.JUTA首先调用工具Soot解析单个Java法的源码,并将源码解析成一个控制流图.在此基础上,采用符号执行的方法分析控制流图上的路径.工具能够自动地产生满足覆盖率标准的程序的测试用例.这种方法产生的所有测试用例都是可执行的,并且一般来说具有较小的测试用例数.如果用户能够合理地给出描述程序错误的断言,框架JUTA能够自动地检查源码中部分特定类型的错误.实验结果表明工具对Java元代码的动态测试和静态测试均能在可接受的时间内给出有效的结果.
Resumo:
基于WEB服务器的机器人控制把传统机器人控制技术和最近数十年兴起的INTERNET技术结合到了一起。由于现在INTERNET技术的普及,这种技术结合消除了传统机器人在普通大众前的神秘感,使机器人的应用层次达到了普通百姓的认识层次。文章着重介绍了如何用Java言开发遥操作系统。在设计该技术时充分考虑了机器人控制的实用性以及所采用的各种INTERNET通讯技术以满足传统机器人的控制要求。
Resumo:
Java供了对象序列化技术,利用此技术把数据对象序列化在网络上传输,从而实现多层分布式数据库应用中数据对象的迁移. JavaRMI 大大增强了Java发分布式应用的能力,是开发纯Java的网络分布式应用系统的核心解决方案之一。本文以一个简单的三层分布式应用系统为例,详细介绍利用Java RMI。及对象序列化技术来实现多层分布式数据库应用。