DCEVM如何修补JVM?

DCEVM 如何给 JVM 打补丁,使其既可以在正常模式下也可以在XXaltjvm模式下启动?它对普通人有libjvm.so/jvm.dll/libjvm.dylib什么作用?

从安装 DCEVM

回答

DCEVM 不修补原始 JVM。
它安装了不同版本的libjvm.sounder$JDK_HOME/lib/dcevm

-XXaltjvm开箱即用的常规 Java 启动器支持选项。指定后,启动器会libjvm.so在备用目录中查找:

  • 如果-XXaltjvmvalue 以 开头/,则将其视为替代 JVM 的绝对路径;
  • 否则,该目录是相对于 JDK 主目录的: $JDK_HOME/lib/<altjvm>
  • I was also interested in this question. Out of curiosity, do you know if it is possible to patch an existing JVM if it comes with debug symbols (so in theory we can replace C/C++ functions in the executable because we know where they are located and we know the version of the JVM)? How hard would it be to do this? Some functions don't change that much from one Java version to the other....

以上是DCEVM如何修补JVM?的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>