Advanced Code Hot Swapping in JDK 8?

后端 未结 2 1376
南笙
南笙 2020-12-13 06:52

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

The options available is JRebel and a dis

相关标签:
2条回答
  • 2020-12-13 07:23

    There is a fork of DCEVM maintained in the repository on Github. It was recently updated for Java 8. The binaries are available through the GitHub releases or on the downloads page.

    For simple things, like adding/removing methods, it should be pretty reliable (verified by automated tests in 16 different configurations). However, it still could eventually crash JVM, so it is by no means should be used in production.

    0 讨论(0)
  • 2020-12-13 07:26

    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 status is currently "Submitted". The process is described as follows:

    A successful JEP passes through the following states:

    • 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.

    0 讨论(0)
提交回复
热议问题