提交 740830f3 编写于 作者: K kevinw

8022655: ClassDump ignored jarStream setting

Reviewed-by: minqi, sla
上级 26c9d760
......@@ -92,8 +92,13 @@ public class ClassDump extends Tool {
System.err.println("Warning: Can not create class filter!");
}
}
String outputDirectory = System.getProperty("sun.jvm.hotspot.tools.jcore.outputDir", ".");
setOutputDirectory(outputDirectory);
// outputDirectory and jarStream are alternatives: setting one closes the other.
// If neither is set, use outputDirectory from the System property:
if (outputDirectory == null && jarStream == null) {
String dirName = System.getProperty("sun.jvm.hotspot.tools.jcore.outputDir", ".");
setOutputDirectory(dirName);
}
// walk through the system dictionary
SystemDictionary dict = VM.getVM().getSystemDictionary();
......
......@@ -186,6 +186,11 @@ generate_replay() {
then
# enable core dump
ulimit -c unlimited
if [ $VM_OS = "solaris" ]
then
coreadm -p core $$
fi
fi
cmd="${JAVA} ${TESTVMOPTS} $@ \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册