简体   繁体   English

DCEVM 如何修补 JVM?

[英]How does DCEVM patch the JVM?

How does DCEVM patch the JVM so that it can be started both in the normal mode and in XXaltjvm mode? DCEVM 如何为 JVM 打补丁,使其可以在正常模式和XXaltjvm模式下启动? What does it do to the regular libjvm.so/jvm.dll/libjvm.dylib ?它对常规的libjvm.so/jvm.dll/libjvm.dylib有什么作用?

From Installing DCEVM安装 DCEVM

DCEVM does not patch the original JVM. DCEVM 不修补原装 JVM。
It installs a different version of libjvm.so under $JDK_HOME/lib/dcevm它在$JDK_HOME/lib/dcevm下安装了不同版本的libjvm.so

-XXaltjvm option is supported by the regular Java launcher out of the box . 开箱即用的常规 Java 启动器支持-XXaltjvm选项。 When specified, the launcher looks for libjvm.so in the alternate directory:指定后,启动器会在备用目录中查找libjvm.so

  • if -XXaltjvm value starts with / , it is treated as the absolute path of the alternative JVM;如果-XXaltjvm值以/开头,则将其视为替代 JVM 的绝对路径;
  • otherwise, the directory is relative to the JDK home: $JDK_HOME/lib/<altjvm>否则,该目录相对于 JDK 主目录: $JDK_HOME/lib/<altjvm>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM