...
首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >Safe and atomic run-time code evolution for Java and its application to dynamic AOP
【24h】

Safe and atomic run-time code evolution for Java and its application to dynamic AOP

机译:Java的安全原子运行时代码演化及其在动态AOP中的应用

获取原文
获取原文并翻译 | 示例
   

获取外文期刊封面封底 >>

       

摘要

Dynamic updates to running programs improve development productivity and reduce downtime of long-running applications. This feature is however severely limited in current virtual machines for object-oriented languages. In particular, changes to classes often apply only to methods invoked after a class change, but not to active methods on the call stack of threads. Additionally, adding and removing methods as well as fields is often not supported. We present a novel programming model for safe and atomic code updates of Java programs that also updates methods that are currently executed. We introduce safe update regions and pause threads only there before an update. We automatically convert the stack frames to suit the new versions of the methods. Our implementation is based on a production-quality Java virtual machine. Additionally, we present SafeWeave, a dynamic aspectoriented programming system that exposes the atomic code updates through a high-level programming model. AspectJ advice can be added to and removed from a running application. Changes are atomic and correctness is guaranteed even though weaving happens in parallel to program execution, and the system fully supports the dynamic class loading of Java.We show that the enhanced evolution features do not incur any performance penalty before and after version changes.
机译:对正在运行的程序进行动态更新可以提高开发效率并减少长时间运行的应用程序的停机时间。但是,此功能在当前面向对象语言的虚拟机中受到严格限制。特别是,对类的更改通常仅适用于在类更改后调用的方法,而不适用于线程调用堆栈上的活动方法。此外,通常不支持添加和删除方法以及字段。我们提出了一种新颖的编程模型,用于Java程序的安全和原子代码更新,还可以更新当前执行的方法。我们引入安全的更新区域,并仅在更新之前在此暂停线程。我们将自动转换堆栈框架以适合新版本的方法。我们的实现基于生产质量的Java虚拟机。此外,我们介绍了SafeWeave,这是一个动态的,面向方面的编程系统,它通过高级编程模型公开原子代码更新。可以向正在运行的应用程序中添加和删除AspectJ建议。更改是原子性的,即使编织与程序执行并行发生,也可以保证正确性,并且系统完全支持Java的动态类加载。我们证明,增强的Evolution功能在版本更改前后不会造成任何性能损失。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号