How does DCEVM patch the JVM?

666 views Asked by At

How does DCEVM patch the JVM so that it can be started both in the normal mode and in XXaltjvm mode? What does it do to the regular libjvm.so/jvm.dll/libjvm.dylib?

From Installing DCEVM

1

There are 1 answers

2
apangin On BEST ANSWER

DCEVM does not patch the original JVM.
It installs a different version of libjvm.so under $JDK_HOME/lib/dcevm

-XXaltjvm option is supported by the regular Java launcher out of the box. When specified, the launcher looks for libjvm.so in the alternate directory:

  • if -XXaltjvm value starts with /, it is treated as the absolute path of the alternative JVM;
  • otherwise, the directory is relative to the JDK home: $JDK_HOME/lib/<altjvm>