convertToRuntimePath converts a staging path to a runtime path using $DEPS_DIR. The path ends up in a .opts file that is read by the profile.d assembly script, which expands $DEPS_DIR before passing the value to the JVM.
(stagingPath string)
| 180 | // The path ends up in a .opts file that is read by the profile.d assembly script, |
| 181 | // which expands $DEPS_DIR before passing the value to the JVM. |
| 182 | func (j *JVMKillAgent) convertToRuntimePath(stagingPath string) string { |
| 183 | depsIdx := j.ctx.Stager.DepsIdx() |
| 184 | filename := filepath.Base(stagingPath) |
| 185 | return fmt.Sprintf("$DEPS_DIR/%s/jre/bin/%s", depsIdx, filename) |
| 186 | } |
| 187 | |
| 188 | // getHeapDumpPath checks for volume service with heap-dump tag and returns path |
| 189 | func (j *JVMKillAgent) getHeapDumpPath() string { |