--- old/test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java Tue Sep 20 21:31:25 2011 +++ new/test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java Tue Sep 20 21:31:22 2011 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -24,6 +24,7 @@ /* * @test * @bug 4990825 + * @run main/othervm -XX:+UsePerfData PrologSizeSanityCheck * @summary prolog size and overflow sanity checks */ --- old/test/sun/tools/common/ApplicationSetup.sh Tue Sep 20 21:31:53 2011 +++ new/test/sun/tools/common/ApplicationSetup.sh Tue Sep 20 21:31:51 2011 @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -43,7 +43,7 @@ { appOutput="${TESTCLASSES}/Application.out" - ${JAVA} -classpath "${TESTCLASSES}" "$@" > "$appOutput" 2>&1 & + ${JAVA} -XX:+UsePerfData -classpath "${TESTCLASSES}" "$@" > "$appOutput" 2>&1 & appJavaPid="$!" appOtherPid= appPidList="$appJavaPid" @@ -131,7 +131,7 @@ # stopApplication() { - $JAVA -classpath "${TESTCLASSES}" ShutdownSimpleApplication $1 + $JAVA -XX:+UsePerfData -classpath "${TESTCLASSES}" ShutdownSimpleApplication $1 } --- old/test/sun/tools/jinfo/Basic.sh Tue Sep 20 21:32:12 2011 +++ new/test/sun/tools/jinfo/Basic.sh Tue Sep 20 21:32:10 2011 @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -46,15 +46,15 @@ if [ $isWindows = false ]; then # -sysprops option - ${JINFO} -sysprops $appJavaPid + ${JINFO} -J-XX:+UsePerfData -sysprops $appJavaPid if [ $? != 0 ]; then failed=1; fi # -flags option - ${JINFO} -flags $appJavaPid + ${JINFO} -J-XX:+UsePerfData -flags $appJavaPid if [ $? != 0 ]; then failed=1; fi # no option - ${JINFO} $appJavaPid + ${JINFO} -J-XX:+UsePerfData $appJavaPid if [ $? != 0 ]; then failed=1; fi fi @@ -61,24 +61,24 @@ # -flag option -${JINFO} -flag +PrintGC $appJavaPid +${JINFO} -J-XX:+UsePerfData -flag +PrintGC $appJavaPid if [ $? != 0 ]; then failed=1; fi -${JINFO} -flag -PrintGC $appJavaPid +${JINFO} -J-XX:+UsePerfData -flag -PrintGC $appJavaPid if [ $? != 0 ]; then failed=1; fi -${JINFO} -flag PrintGC $appJavaPid +${JINFO} -J-XX:+UsePerfData -flag PrintGC $appJavaPid if [ $? != 0 ]; then failed=1; fi if $isSolaris; then - ${JINFO} -flag +ExtendedDTraceProbes $appJavaPid + ${JINFO} -J-XX:+UsePerfData -flag +ExtendedDTraceProbes $appJavaPid if [ $? != 0 ]; then failed=1; fi - ${JINFO} -flag -ExtendedDTraceProbes $appJavaPid + ${JINFO} -J-XX:+UsePerfData -flag -ExtendedDTraceProbes $appJavaPid if [ $? != 0 ]; then failed=1; fi - ${JINFO} -flag ExtendedDTraceProbes $appJavaPid + ${JINFO} -J-XX:+UsePerfData -flag ExtendedDTraceProbes $appJavaPid if [ $? != 0 ]; then failed=1; fi fi --- old/test/sun/tools/jmap/Basic.sh Tue Sep 20 21:32:35 2011 +++ new/test/sun/tools/jmap/Basic.sh Tue Sep 20 21:32:30 2011 @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -45,15 +45,15 @@ failed=0 # -histo[:live] option -${JMAP} -histo $appJavaPid +${JMAP} -J-XX:+UsePerfData -histo $appJavaPid if [ $? != 0 ]; then failed=1; fi -${JMAP} -histo:live $appJavaPid +${JMAP} -J-XX:+UsePerfData -histo:live $appJavaPid if [ $? != 0 ]; then failed=1; fi # -dump option DUMPFILE="java_pid${appJavaPid}.hprof" -${JMAP} -dump:format=b,file=${DUMPFILE} $appJavaPid +${JMAP} -J-XX:+UsePerfData -dump:format=b,file=${DUMPFILE} $appJavaPid if [ $? != 0 ]; then failed=1; fi # check that heap dump is parsable @@ -64,7 +64,7 @@ rm ${DUMPFILE} # -dump:live option -${JMAP} -dump:live,format=b,file=${DUMPFILE} $appJavaPid +${JMAP} -J-XX:+UsePerfData -dump:live,format=b,file=${DUMPFILE} $appJavaPid if [ $? != 0 ]; then failed=1; fi # check that heap dump is parsable --- old/test/sun/tools/jps/jps-Defaults.sh Tue Sep 20 21:32:56 2011 +++ new/test/sun/tools/jps/jps-Defaults.sh Tue Sep 20 21:32:55 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} 2>&1 | awk -f ${TESTSRC}/jps_Output1.awk +${JPS} -J-XX:+UsePerfData 2>&1 | awk -f ${TESTSRC}/jps_Output1.awk --- old/test/sun/tools/jps/jps-V_2.sh Tue Sep 20 21:33:15 2011 +++ new/test/sun/tools/jps/jps-V_2.sh Tue Sep 20 21:33:14 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011,Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -J-XX:Flags=${TESTSRC}/vmflags -V | awk -f ${TESTSRC}/jps-V_Output2.awk +${JPS} -J-XX:+UsePerfData -J-XX:Flags=${TESTSRC}/vmflags -V | awk -f ${TESTSRC}/jps-V_Output2.awk --- old/test/sun/tools/jps/jps-Vm_2.sh Tue Sep 20 21:33:37 2011 +++ new/test/sun/tools/jps/jps-Vm_2.sh Tue Sep 20 21:33:35 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -J-XX:Flags=${TESTSRC}/vmflags -Vm | awk -f ${TESTSRC}/jps-Vm_Output2.awk +${JPS} -J-XX:+UsePerfData -J-XX:Flags=${TESTSRC}/vmflags -Vm | awk -f ${TESTSRC}/jps-Vm_Output2.awk --- old/test/sun/tools/jps/jps-Vvm.sh Tue Sep 20 21:33:57 2011 +++ new/test/sun/tools/jps/jps-Vvm.sh Tue Sep 20 21:33:55 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -J-XX:Flags=${TESTSRC}/vmflags -Vvm | awk -f ${TESTSRC}/jps-Vvm_Output1.awk +${JPS} -J-XX:+UsePerfData -J-XX:Flags=${TESTSRC}/vmflags -Vvm | awk -f ${TESTSRC}/jps-Vvm_Output1.awk --- old/test/sun/tools/jps/jps-Vvml.sh Tue Sep 20 21:34:16 2011 +++ new/test/sun/tools/jps/jps-Vvml.sh Tue Sep 20 21:34:14 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -J-XX:Flags=${TESTSRC}/vmflags -Vvml | awk -f ${TESTSRC}/jps-Vvml_Output1.awk +${JPS} -J-XX:+UsePerfData -J-XX:Flags=${TESTSRC}/vmflags -Vvml | awk -f ${TESTSRC}/jps-Vvml_Output1.awk --- old/test/sun/tools/jps/jps-Vvml_2.sh Tue Sep 20 21:34:37 2011 +++ new/test/sun/tools/jps/jps-Vvml_2.sh Tue Sep 20 21:34:35 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -47,6 +47,10 @@ # any args to Sleeper.main() or any jvm flags or options, as we # need to inspect jps output for the no args condition. # +# Note: this test can not pass on a VM with UsePerfData disabled by default, +# and we can not set -XX:+UsePerfData as that invalidates the test premise of +# there being no jvm flags + ${JAVA} -cp ${TESTCLASSES} Sleeper & SLEEPER_PID=$! --- old/test/sun/tools/jps/jps-help.sh Tue Sep 20 21:34:57 2011 +++ new/test/sun/tools/jps/jps-help.sh Tue Sep 20 21:34:55 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,7 +33,7 @@ JPS="${TESTJAVA}/bin/jps" rm -f jps.out 2>/dev/null -${JPS} -? > jps.out 2>&1 +${JPS} -J-XX:+UsePerfData -? > jps.out 2>&1 diff -w jps.out ${TESTSRC}/usage.out if [ $? != 0 ] @@ -44,7 +44,7 @@ fi rm -f jps.out 2>/dev/null -${JPS} -help > jps.out 2>&1 +${JPS} -J-XX:+UsePerfData -help > jps.out 2>&1 diff -w jps.out ${TESTSRC}/usage.out if [ $? != 0 ] --- old/test/sun/tools/jps/jps-l_1.sh Tue Sep 20 21:35:16 2011 +++ new/test/sun/tools/jps/jps-l_1.sh Tue Sep 20 21:35:14 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -l 2>&1 | awk -f ${TESTSRC}/jps-l_Output1.awk +${JPS} -J-XX:+UsePerfData -l 2>&1 | awk -f ${TESTSRC}/jps-l_Output1.awk --- old/test/sun/tools/jps/jps-l_2.sh Tue Sep 20 21:35:37 2011 +++ new/test/sun/tools/jps/jps-l_2.sh Tue Sep 20 21:35:35 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -l | awk -f ${TESTSRC}/jps-l_Output2.awk +${JPS} -J-XX:+UsePerfData -l | awk -f ${TESTSRC}/jps-l_Output2.awk --- old/test/sun/tools/jps/jps-lm.sh Tue Sep 20 21:35:57 2011 +++ new/test/sun/tools/jps/jps-lm.sh Tue Sep 20 21:35:55 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -lm | awk -f ${TESTSRC}/jps-lm_Output1.awk +${JPS} -J-XX:+UsePerfData -lm | awk -f ${TESTSRC}/jps-lm_Output1.awk --- old/test/sun/tools/jps/jps-m.sh Tue Sep 20 21:36:15 2011 +++ new/test/sun/tools/jps/jps-m.sh Tue Sep 20 21:36:14 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -m | awk -f ${TESTSRC}/jps-m_Output1.awk +${JPS} -J-XX:+UsePerfData -m | awk -f ${TESTSRC}/jps-m_Output1.awk --- old/test/sun/tools/jps/jps-m_2.sh Tue Sep 20 21:36:37 2011 +++ new/test/sun/tools/jps/jps-m_2.sh Tue Sep 20 21:36:32 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -46,10 +46,10 @@ # any args to Sleeper.main(), as we need to inspect jps output # for the no args condition. # -${JAVA} -cp ${TESTCLASSES} Sleeper & +${JAVA} -XX:+UsePerfData -cp ${TESTCLASSES} Sleeper & SLEEPER_PID=$! -${JPS} -m | awk -f ${TESTSRC}/jps-m_Output2.awk +${JPS} -J-XX:+UsePerfData -m | awk -f ${TESTSRC}/jps-m_Output2.awk RC=$? cleanup --- old/test/sun/tools/jps/jps-q.sh Tue Sep 20 21:36:59 2011 +++ new/test/sun/tools/jps/jps-q.sh Tue Sep 20 21:36:57 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -q | awk -f ${TESTSRC}/jps-q_Output1.awk +${JPS} -J-XX:+UsePerfData -q | awk -f ${TESTSRC}/jps-q_Output1.awk --- old/test/sun/tools/jps/jps-v_1.sh Tue Sep 20 21:37:21 2011 +++ new/test/sun/tools/jps/jps-v_1.sh Tue Sep 20 21:37:19 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -J-XX:+UseParallelGC -v | awk -f ${TESTSRC}/jps-v_Output1.awk +${JPS} -J-XX:+UsePerfData -J-XX:+UseParallelGC -v | awk -f ${TESTSRC}/jps-v_Output1.awk --- old/test/sun/tools/jps/jps-vm_1.sh Tue Sep 20 21:37:43 2011 +++ new/test/sun/tools/jps/jps-vm_1.sh Tue Sep 20 21:37:41 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JPS="${TESTJAVA}/bin/jps" -${JPS} -J-XX:+UseParallelGC -vm | awk -f ${TESTSRC}/jps-vm_Output1.awk +${JPS} -J-XX:+UsePerfData -J-XX:+UseParallelGC -vm | awk -f ${TESTSRC}/jps-vm_Output1.awk --- old/test/sun/tools/jstack/Basic.sh Tue Sep 20 21:38:03 2011 +++ new/test/sun/tools/jstack/Basic.sh Tue Sep 20 21:38:01 2011 @@ -1,7 +1,7 @@ #!/bin/sh # -# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -45,11 +45,11 @@ failed=0 # normal -$JSTACK $appJavaPid 2>&1 +$JSTACK -J-XX:+UsePerfData $appJavaPid 2>&1 if [ $? != 0 ]; then failed=1; fi # long -$JSTACK -l $appJavaPid 2>&1 +$JSTACK -J-XX:+UsePerfData -l $appJavaPid 2>&1 if [ $? != 0 ]; then failed=1; fi set -e --- old/test/sun/tools/jstat/jstatClassOutput1.sh Tue Sep 20 21:38:21 2011 +++ new/test/sun/tools/jstat/jstatClassOutput1.sh Tue Sep 20 21:38:20 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -class 0 2>&1 | awk -f ${TESTSRC}/classOutput1.awk +${JSTAT} -J-XX:+UsePerfData -class 0 2>&1 | awk -f ${TESTSRC}/classOutput1.awk --- old/test/sun/tools/jstat/jstatClassloadOutput1.sh Tue Sep 20 21:38:43 2011 +++ new/test/sun/tools/jstat/jstatClassloadOutput1.sh Tue Sep 20 21:38:41 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -classload -J-Djstat.showUnsupported=true 0 2>&1 | awk -f ${TESTSRC}/classloadOutput1.awk +${JSTAT} -J-XX:+UsePerfData -classload -J-Djstat.showUnsupported=true 0 2>&1 | awk -f ${TESTSRC}/classloadOutput1.awk --- old/test/sun/tools/jstat/jstatCompilerOutput1.sh Tue Sep 20 21:39:05 2011 +++ new/test/sun/tools/jstat/jstatCompilerOutput1.sh Tue Sep 20 21:39:03 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -compiler 0 2>&1 | awk -f ${TESTSRC}/compilerOutput1.awk +${JSTAT} -J-XX:+UsePerfData -compiler 0 2>&1 | awk -f ${TESTSRC}/compilerOutput1.awk --- old/test/sun/tools/jstat/jstatFileURITest1.sh Tue Sep 20 21:39:24 2011 +++ new/test/sun/tools/jstat/jstatFileURITest1.sh Tue Sep 20 21:39:22 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -40,12 +40,12 @@ # characters into forward slash characters in an effort to convert # TESTSRC into a canonical form useable as URI path. cp ${TESTSRC}/hsperfdata_3433 . - ${JSTAT} -gcutil file:/`pwd`/hsperfdata_3433 2>&1 | awk -f ${TESTSRC}/fileURITest1.awk + ${JSTAT} -J-XX:+UsePerfData -gcutil file:/`pwd`/hsperfdata_3433 2>&1 | awk -f ${TESTSRC}/fileURITest1.awk RC=$? rm -f hsperfdata_3433 2>&1 > /dev/null ;; *) - ${JSTAT} -gcutil file:${TESTSRC}/hsperfdata_3433 2>&1 | awk -f ${TESTSRC}/fileURITest1.awk + ${JSTAT} -J-XX:+UsePerfData -gcutil file:${TESTSRC}/hsperfdata_3433 2>&1 | awk -f ${TESTSRC}/fileURITest1.awk RC=$? ;; esac --- old/test/sun/tools/jstat/jstatGcCapacityOutput1.sh Tue Sep 20 21:39:51 2011 +++ new/test/sun/tools/jstat/jstatGcCapacityOutput1.sh Tue Sep 20 21:39:46 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gccapacity 0 2>&1 | awk -f ${TESTSRC}/gcCapacityOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gccapacity 0 2>&1 | awk -f ${TESTSRC}/gcCapacityOutput1.awk --- old/test/sun/tools/jstat/jstatGcCauseOutput1.sh Tue Sep 20 21:40:19 2011 +++ new/test/sun/tools/jstat/jstatGcCauseOutput1.sh Tue Sep 20 21:40:14 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -37,4 +37,4 @@ # class machine, ergonomics will automatically use UseParallelGC. # The UseParallelGC collector does not currently update the gc cause counters. -${JSTAT} -J-XX:+UseSerialGC -gccause 0 2>&1 | awk -f ${TESTSRC}/gcCauseOutput1.awk +${JSTAT} -J-XX:+UsePerfData -J-XX:+UseSerialGC -gccause 0 2>&1 | awk -f ${TESTSRC}/gcCauseOutput1.awk --- old/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh Tue Sep 20 21:40:47 2011 +++ new/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh Tue Sep 20 21:40:42 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcnewcapacity 0 2>&1 | awk -f ${TESTSRC}/gcNewCapacityOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcnewcapacity 0 2>&1 | awk -f ${TESTSRC}/gcNewCapacityOutput1.awk --- old/test/sun/tools/jstat/jstatGcNewOutput1.sh Tue Sep 20 21:41:18 2011 +++ new/test/sun/tools/jstat/jstatGcNewOutput1.sh Tue Sep 20 21:41:13 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcnew 0 2>&1 | awk -f ${TESTSRC}/gcNewOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcnew 0 2>&1 | awk -f ${TESTSRC}/gcNewOutput1.awk --- old/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh Tue Sep 20 21:41:42 2011 +++ new/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh Tue Sep 20 21:41:40 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcoldcapacity 0 2>&1 | awk -f ${TESTSRC}/gcOldCapacityOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcoldcapacity 0 2>&1 | awk -f ${TESTSRC}/gcOldCapacityOutput1.awk --- old/test/sun/tools/jstat/jstatGcOldOutput1.sh Tue Sep 20 21:42:01 2011 +++ new/test/sun/tools/jstat/jstatGcOldOutput1.sh Tue Sep 20 21:41:59 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcold 0 2>&1 | awk -f ${TESTSRC}/gcOldOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcold 0 2>&1 | awk -f ${TESTSRC}/gcOldOutput1.awk --- old/test/sun/tools/jstat/jstatGcOutput1.sh Tue Sep 20 21:42:20 2011 +++ new/test/sun/tools/jstat/jstatGcOutput1.sh Tue Sep 20 21:42:18 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gc 0 2>&1 | awk -f ${TESTSRC}/gcOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gc 0 2>&1 | awk -f ${TESTSRC}/gcOutput1.awk --- old/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh Tue Sep 20 21:42:41 2011 +++ new/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh Tue Sep 20 21:42:39 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcpermcapacity 0 2>&1 | awk -f ${TESTSRC}/gcPermCapacityOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcpermcapacity 0 2>&1 | awk -f ${TESTSRC}/gcPermCapacityOutput1.awk --- old/test/sun/tools/jstat/jstatHelp.sh Tue Sep 20 21:43:00 2011 +++ new/test/sun/tools/jstat/jstatHelp.sh Tue Sep 20 21:42:59 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,7 +33,7 @@ JSTAT="${TESTJAVA}/bin/jstat" rm -f jstat.out 2>/dev/null -${JSTAT} -? > jstat.out 2>&1 +${JSTAT} -J-XX:+UsePerfData -? > jstat.out 2>&1 diff -w jstat.out ${TESTSRC}/usage.out if [ $? != 0 ] @@ -43,7 +43,7 @@ fi rm -f jstat.out 2>/dev/null -${JSTAT} -help > jstat.out 2>&1 +${JSTAT} -J-XX:+UsePerfData -help > jstat.out 2>&1 diff -w jstat.out ${TESTSRC}/usage.out if [ $? != 0 ] --- old/test/sun/tools/jstat/jstatLineCounts1.sh Tue Sep 20 21:43:19 2011 +++ new/test/sun/tools/jstat/jstatLineCounts1.sh Tue Sep 20 21:43:17 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcutil 0 250 5 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk +${JSTAT} -J-XX:+UsePerfData -gcutil 0 250 5 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk --- old/test/sun/tools/jstat/jstatLineCounts2.sh Tue Sep 20 21:43:41 2011 +++ new/test/sun/tools/jstat/jstatLineCounts2.sh Tue Sep 20 21:43:39 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcutil 0 2>&1 | awk -f ${TESTSRC}/lineCounts2.awk +${JSTAT} -J-XX:+UsePerfData -gcutil 0 2>&1 | awk -f ${TESTSRC}/lineCounts2.awk --- old/test/sun/tools/jstat/jstatLineCounts3.sh Tue Sep 20 21:44:00 2011 +++ new/test/sun/tools/jstat/jstatLineCounts3.sh Tue Sep 20 21:43:58 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcutil -h 10 0 250 10 2>&1 | awk -f ${TESTSRC}/lineCounts3.awk +${JSTAT} -J-XX:+UsePerfData -gcutil -h 10 0 250 10 2>&1 | awk -f ${TESTSRC}/lineCounts3.awk --- old/test/sun/tools/jstat/jstatLineCounts4.sh Tue Sep 20 21:44:19 2011 +++ new/test/sun/tools/jstat/jstatLineCounts4.sh Tue Sep 20 21:44:17 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts4.awk +${JSTAT} -J-XX:+UsePerfData -gcutil -h 10 0 250 11 2>&1 | awk -f ${TESTSRC}/lineCounts4.awk --- old/test/sun/tools/jstat/jstatOptions1.sh Tue Sep 20 21:44:41 2011 +++ new/test/sun/tools/jstat/jstatOptions1.sh Tue Sep 20 21:44:39 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,8 +33,8 @@ JSTAT="${TESTJAVA}/bin/jstat" rm -f jstat.out1 jstat.out2 2>/dev/null -${JSTAT} -options > jstat.out1 2>&1 -${JSTAT} -options -J-Djstat.showUnsupported=true > jstat.out2 2>&1 +${JSTAT} -J-XX:+UsePerfData -options > jstat.out1 2>&1 +${JSTAT} -J-XX:+UsePerfData -options -J-Djstat.showUnsupported=true > jstat.out2 2>&1 diff -w jstat.out1 ${TESTSRC}/options1.out diff -w jstat.out2 ${TESTSRC}/options2.out --- old/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh Tue Sep 20 21:45:02 2011 +++ new/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh Tue Sep 20 21:45:00 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -35,4 +35,4 @@ # run with -Xcomp as jstat may complete too quickly to assure # that compilation occurs. -${JSTAT} -J-Xcomp -printcompilation 0 2>&1 | awk -f ${TESTSRC}/printCompilationOutput1.awk +${JSTAT} -J-XX:+UsePerfData -J-Xcomp -printcompilation 0 2>&1 | awk -f ${TESTSRC}/printCompilationOutput1.awk --- old/test/sun/tools/jstat/jstatSnap1.sh Tue Sep 20 21:45:20 2011 +++ new/test/sun/tools/jstat/jstatSnap1.sh Tue Sep 20 21:45:19 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -snap 0 2>&1 | awk -f ${TESTSRC}/snap1.awk +${JSTAT} -J-XX:+UsePerfData -snap 0 2>&1 | awk -f ${TESTSRC}/snap1.awk --- old/test/sun/tools/jstat/jstatSnap2.sh Tue Sep 20 21:45:42 2011 +++ new/test/sun/tools/jstat/jstatSnap2.sh Tue Sep 20 21:45:40 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -J-Djstat.showUnsupported=true -snap 0 2>&1 | awk -f ${TESTSRC}/snap2.awk +${JSTAT} -J-XX:+UsePerfData -J-Djstat.showUnsupported=true -snap 0 2>&1 | awk -f ${TESTSRC}/snap2.awk --- old/test/sun/tools/jstat/jstatTimeStamp1.sh Tue Sep 20 21:46:01 2011 +++ new/test/sun/tools/jstat/jstatTimeStamp1.sh Tue Sep 20 21:45:59 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -33,4 +33,4 @@ JSTAT="${TESTJAVA}/bin/jstat" -${JSTAT} -gcutil -t 0 2>&1 | awk -f ${TESTSRC}/timeStamp1.awk +${JSTAT} -J-XX:+UsePerfData -gcutil -t 0 2>&1 | awk -f ${TESTSRC}/timeStamp1.awk --- old/test/sun/tools/jstatd/jstatdDefaults.sh Tue Sep 20 21:46:20 2011 +++ new/test/sun/tools/jstatd/jstatdDefaults.sh Tue Sep 20 21:46:18 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -45,13 +45,13 @@ JSTATD_OUT="jstatd_$$.out" -${JSTATD} -J-Djava.security.policy=${TESTSRC}/all.policy 2>&1 > ${JSTATD_OUT} & +${JSTATD} -J-XX:+UsePerfData -J-Djava.security.policy=${TESTSRC}/all.policy 2>&1 > ${JSTATD_OUT} & JSTATD_PID=$! echo "jstatd started as pid ${JSTATD_PID}" sleep 3 -${JPS} ${HOSTNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk +${JPS} -J-XX:+UsePerfData ${HOSTNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk if [ $? -ne 0 ] then @@ -60,7 +60,7 @@ exit 1 fi -${JSTAT} -gcutil ${JSTATD_PID}@${HOSTNAME} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_PID}@${HOSTNAME} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk RC=$? if [ ${RC} -ne 0 ] --- old/test/sun/tools/jstatd/jstatdExternalRegistry.sh Tue Sep 20 21:46:43 2011 +++ new/test/sun/tools/jstatd/jstatdExternalRegistry.sh Tue Sep 20 21:46:40 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -53,19 +53,19 @@ RMIREGISTRY_OUT="rmiregistry_$$.out" JSTATD_OUT="jstatd_$$.out" -${RMIREGISTRY} ${PORT} > ${RMIREGISTRY_OUT} 2>&1 & +${RMIREGISTRY} -J-XX:+UsePerfData ${PORT} > ${RMIREGISTRY_OUT} 2>&1 & RMIREGISTRY_PID=$! echo "rmiregistry started on port ${PORT} as pid ${RMIREGISTRY_PID}" sleep 3 -${JSTATD} -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT} > ${JSTATD_OUT} 2>&1 & +${JSTATD} -J-XX:+UsePerfData -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT} > ${JSTATD_OUT} 2>&1 & JSTATD_PID=$! echo "jstatd started as pid ${JSTATD_PID}" sleep 3 -${JPS} ${HOSTNAME}:${PORT} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk +${JPS} -J-XX:+UsePerfData ${HOSTNAME}:${PORT} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk if [ $? -ne 0 ] then @@ -73,7 +73,7 @@ exit 1 fi -${JSTAT} -gcutil ${JSTATD_PID}@${HOSTNAME}:${PORT} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_PID}@${HOSTNAME}:${PORT} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk RC=$? if [ ${RC} -ne 0 ] --- old/test/sun/tools/jstatd/jstatdPort.sh Tue Sep 20 21:47:03 2011 +++ new/test/sun/tools/jstatd/jstatdPort.sh Tue Sep 20 21:47:01 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -50,13 +50,13 @@ JSTATD_OUT="jstatd_$$.out" -${JSTATD} -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT} 2>&1 > ${JSTATD_OUT} & +${JSTATD} -J-XX:+UsePerfData -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT} 2>&1 > ${JSTATD_OUT} & JSTATD_PID=$! echo "jstatd started as pid ${JSTATD_PID} on port ${PORT}" sleep 3 -${JPS} ${HOSTNAME}:${PORT} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk +${JPS} -J-XX:+UsePerfData ${HOSTNAME}:${PORT} 2>&1 | tee jps.out | awk -f ${TESTSRC}/jpsOutput1.awk if [ $? -ne 0 ] then @@ -65,7 +65,7 @@ exit 1 fi -${JSTAT} -gcutil ${JSTATD_PID}@${HOSTNAME}:${PORT} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk +${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_PID}@${HOSTNAME}:${PORT} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk RC=$? if [ ${RC} -ne 0 ] --- old/test/sun/tools/jstatd/jstatdServerName.sh Tue Sep 20 21:47:21 2011 +++ new/test/sun/tools/jstatd/jstatdServerName.sh Tue Sep 20 21:47:20 2011 @@ -1,5 +1,5 @@ # -# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -54,20 +54,20 @@ JSTATD_1_OUT="jstatd_$$_1.out" JSTATD_2_OUT="jstatd_$$_2.out" -${JSTATD} -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT_1} 2>&1 > ${JSTATD_1_OUT} & +${JSTATD} -J-XX:+UsePerfData -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT_1} 2>&1 > ${JSTATD_1_OUT} & JSTATD_1_PID=$! echo "first jstatd started as pid ${JSTATD_1_PID} on port ${PORT_1} with default server name" sleep 3 -${JSTATD} -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT_2} -n ${SERVERNAME} 2>&1 > ${JSTATD_2_OUT} & +${JSTATD} -J-XX:+UsePerfData -J-Djava.security.policy=${TESTSRC}/all.policy -p ${PORT_2} -n ${SERVERNAME} 2>&1 > ${JSTATD_2_OUT} & JSTATD_2_PID=$! echo "second jstatd started as pid ${JSTATD_2_PID} on port ${PORT_2} with name ${SERVERNAME}" sleep 3 -echo "running: ${JPS} ${HOSTNAME}:${PORT_1}" -${JPS} ${HOSTNAME}:${PORT_1} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk +echo "running: ${JPS} -J-XX:+UsePerfData ${HOSTNAME}:${PORT_1}" +${JPS} -J-XX:+UsePerfData ${HOSTNAME}:${PORT_1} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk if [ $? -ne 0 ] then @@ -76,8 +76,8 @@ exit 1 fi -echo "running: ${JPS} ${HOSTNAME}:${PORT_2}/${SERVERNAME}" -${JPS} ${HOSTNAME}:${PORT_2}/${SERVERNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk +echo "running: ${JPS} -J-XX:+UsePerfData ${HOSTNAME}:${PORT_2}/${SERVERNAME}" +${JPS} -J-XX:+UsePerfData ${HOSTNAME}:${PORT_2}/${SERVERNAME} 2>&1 | awk -f ${TESTSRC}/jpsOutput1.awk if [ $? -ne 0 ] then @@ -86,8 +86,8 @@ exit 1 fi -echo "running: ${JSTAT} -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_1} 250 5" -${JSTAT} -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_1} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk +echo "running: ${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_1} 250 5" +${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_1} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk RC=$? if [ ${RC} -ne 0 ] @@ -95,8 +95,8 @@ echo "jstat output differs from expected output" fi -echo "running: ${JSTAT} -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_2}/${SERVERNAME} 250 5" -${JSTAT} -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_2}/${SERVERNAME} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk +echo "running: ${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_2}/${SERVERNAME} 250 5" +${JSTAT} -J-XX:+UsePerfData -gcutil ${JSTATD_1_PID}@${HOSTNAME}:${PORT_2}/${SERVERNAME} 250 5 2>&1 | awk -f ${TESTSRC}/jstatGcutilOutput1.awk RC=$? if [ ${RC} -ne 0 ]