JDK 8中的高级代码热插拔? [英] Advanced Code Hot Swapping in JDK 8?

查看:385
本文介绍了JDK 8中的高级代码热插拔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在JavaVM中寻找更好的HotSwapping。能够仅应用方法体改变是可以的,但是非常有限。

I am looking for better HotSwapping in the JavaVM. Being able to only apply method body changes is okay but quite limiting.

可用的选项是JRebel和一个名为动态代码演进虚拟机(DCEVM)

The options available is JRebel and a discontinued project called Dynamic Code Evolution Virtual Machine (DCEVM).

有一个 JEP 159 由DCEVM的核心开发人员编写。 2011年的博客文章提到,DCEVM的开发人员现在可以在Oracle中将其集成到JDK中。

There is a JEP 159 out there that was written by the core developper of DCEVM. A blog post from 2011 mentioned that the developers of DCEVM now work for Oracle to integrate this into the JDK.

我们是否已经对JDK 8 beta有这种支持或者是推迟到JDK 9?

Do we have this kind of support for JDK 8 beta already or was it postponed to JDK 9?

我需要热插拔来添加和删除以及重命名私有方法。这会有很多帮助。有没有一个产品允许我这样做(在JRebel旁边哪些公关活动让我感到不安)。

I need hot swapping for adding and removing and renaming private methods mostly. This would help alot. Is there a product allowing me to do so (beside JRebel which PR-campaigns got me upset).

最后支持的DCEVM版本是1.6u24并且它只提供32位linux二进制文件。由于我使用1.7和64位Linux,这对我来说都是一个显示阻止。

The last supported version of DCEVM is for 1.6u24 and it only provides 32-bit linux binaries. Since I use 1.7 and 64bit Linux this is both a show stopper for me.

github上还有另一个可用的项目叫做 Fakereplace 。这可以很容易地用于我的目的,还是我不应该对此进行调查?

There is also another project available on github called Fakereplace. Can this be easily used for my purpose or should I not investigate into this?

推荐答案

JDK 8和JDK 9中的JEP是列在此页面中。 JEP-159不在其中。从 jep index 可以看出,JEP-159还没有针对任何JDK版本,甚至没有jdk 10.

JEPs coming in JDK 8 and JDK 9 are listed in this page. JEP-159 is not among them. From jep index you can see that JEP-159 is not yet targeted to any JDK release, not even jdk 10.

JEP-159状态目前是提交的过程描述如下

JEP-159 status is currently "Submitted". The process is described as follows:


成功的JEP通过以下状态:

A successful JEP passes through the following states:


  • 草稿 - 作者在发布时进行初步审核,建立共识

  • 已发布 - 作者进入JEP档案进行更广泛的审核

  • 已提交 - 作者声明可以进行评估

  • 候选人 - 接受OpenJDK领导包含在路线图中

  • 资助 - 由集团或地区负责人判断为资金充足

  • 已完成 - 已完成交付

  • Draft — In circulation by the author for initial review and consensus-building
  • Posted — Entered into the JEP Archive by the author for wider review
  • Submitted — Declared by the author to be ready for evaluation
  • Candidate — Accepted for inclusion in the Roadmap by the OpenJDK Lead
  • Funded — Judged by a Group or Area Lead to be fully funded
  • Completed — Finished and delivered

因此尚未接受任何路线图。

So it's not yet accepted for any roadmap.

这篇关于JDK 8中的高级代码热插拔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆