arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1211.7345cs.SE
收藏

JooFlux:修改代码,并直接在JVM 7中注入方面

JooFlux : modification de code à chaud et injection d'aspects directement dans une JVM 7

Julien Ponge, Frédéric Le Mouël

摘要:

在运行时更改功能性和非功能性软件实现在开发和生产环境中是有用的,有时甚至是至关重要的。JooFlux是一个JVM代理,它允许方法实现的动态替换和方面建议的应用。它通过字节码转换来利用Java SE 7中添加的新invokedynamic指令来帮助实现JVM的动态语言。JooFlux可以使用JMX代理进行管理,以便在运行时进行动态修改,而无需求助于专用的特定领域语言。我们将JooFlux与现有的AOP平台和动态语言进行了比较。结果表明,JooFlux的性能接近Java的--与大多数时间边际开销,有时增益--在AOP平台和动态语言提出显着的开销。这为JooFlux未来有趣的发展和应用铺平了道路。

英文摘要:

Changing functional and non-functional software implementation at runtime is useful and even sometimes critical both in development and production environments. JooFlux is a JVM agent that allows both the dynamic replacement of method implementations and the application of aspect advices. It works by doing bytecode transformation to take advantage of the new invokedynamic instruction added in Java SE 7 to help implementing dynamic languages for the JVM. JooFlux can be managed using a JMX agent so as to operate dynamic modifications at runtime, without resorting to a dedicated domain-specific language. We compared JooFlux with existing AOP platforms and dynamic languages. Results demonstrate that JooFlux performances are close to the Java ones --- with most of the time a marginal overhead, and sometimes a gain --- where AOP platforms and dynamic languages present significant overheads. This paves the way for interesting future evolutions and applications of JooFlux.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑