# HG changeset patch # User kevinw # Date 1376918938 -3600 # Node ID 10c59b8021ec426a31e062911123297b41518fc1 # Parent e5003079dfa540aaf0e403c11b1db7c64aa98659 8022655: ClassDump ignored jarStream setting Reviewed-by: minqi, sla diff -r e5003079dfa5 -r 10c59b8021ec agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ClassDump.java --- a/agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ClassDump.java Fri Aug 16 10:06:58 2013 -0700 +++ b/agent/src/share/classes/sun/jvm/hotspot/tools/jcore/ClassDump.java Mon Aug 19 14:28:58 2013 +0100 @@ -92,8 +92,13 @@ 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(); diff -r e5003079dfa5 -r 10c59b8021ec test/compiler/ciReplay/common.sh --- a/test/compiler/ciReplay/common.sh Fri Aug 16 10:06:58 2013 -0700 +++ b/test/compiler/ciReplay/common.sh Mon Aug 19 14:28:58 2013 +0100 @@ -186,6 +186,11 @@ then # enable core dump ulimit -c unlimited + + if [ $VM_OS = "solaris" ] + then + coreadm -p core $$ + fi fi cmd="${JAVA} ${TESTVMOPTS} $@ \