Dynamic code evolution for Java
Thomas Würthinger, Christian L. Wimmer, Lukas Stadler · 2010
Dynamic code evolution is a technique to update a program while it is running. In an object-oriented language such as Java, this can be seen as replacing a set of classes by new versions. We modified an existing high-performance virtual machine to allow arbitrary changes to the definition of loaded classes. Besides adding and deleting fields and methods, we also allow any kind of changes to the class and interface hierarchy. Our approach focuses on increasing developer productivity during debugging. Changes can be applied at any point a Java program can be suspended. The evaluation section shows that our modifications to the virtual machine have no negative performance impact on normal program execution. The fast in-place instance update algorithm ensures that the performance characteristics of a change are comparable with performing a full garbage collection run. Standard Java development environments are capable of using the code evolution features of our modified virtual machine, so no additional tools are required.
Cited by 70 works. doi:10.1145/1852761.1852764
Authors
References
- Common LISP. The language
- The DaCapo benchmarks
- The evolving philosophers problem: dynamic change management
- Java(TM) Language Specification, The (3rd Edition) (Java (Addison-Wesley))
- Proceedings of the 2013 International Conference on Software Engineering
- A formal framework for on-line software version change
- Debugging optimized code with dynamic deoptimization
- On-the-fly program modification: systems for dynamic updating
- How to design a system in which modules can be changed on the fly
- The java hotspot TM server compiler