# HG changeset patch # User dholmes # Date 1316571605 14400 # Node ID 3f7bd2de50673688224246fe10e25ce3003e4e69 # Parent c315c8424ce24c158127f1de02454335b42f5225 7012206: ~20 tools tests failing due to -XX:-UsePerfData default in Java SE Embedded Summary: Explicitly enable UsePerfData for the tools that require it to be enabled Reviewed-by: alanb, ohair diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java --- a/jdk/test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/jvmstat/perfdata/PrologSanity/PrologSizeSanityCheck.java Tue Sep 20 22:20:05 2011 -0400 @@ -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 */ diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/common/ApplicationSetup.sh --- a/jdk/test/sun/tools/common/ApplicationSetup.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/common/ApplicationSetup.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 } diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jinfo/Basic.sh --- a/jdk/test/sun/tools/jinfo/Basic.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jinfo/Basic.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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,39 +46,39 @@ 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 # -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jmap/Basic.sh --- a/jdk/test/sun/tools/jmap/Basic.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jmap/Basic.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-Defaults.sh --- a/jdk/test/sun/tools/jps/jps-Defaults.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-Defaults.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-V_2.sh --- a/jdk/test/sun/tools/jps/jps-V_2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-V_2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-Vm_2.sh --- a/jdk/test/sun/tools/jps/jps-Vm_2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-Vm_2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-Vvm.sh --- a/jdk/test/sun/tools/jps/jps-Vvm.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-Vvm.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-Vvml.sh --- a/jdk/test/sun/tools/jps/jps-Vvml.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-Vvml.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-Vvml_2.sh --- a/jdk/test/sun/tools/jps/jps-Vvml_2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-Vvml_2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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=$! diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-help.sh --- a/jdk/test/sun/tools/jps/jps-help.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-help.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 ] diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-l_1.sh --- a/jdk/test/sun/tools/jps/jps-l_1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-l_1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-l_2.sh --- a/jdk/test/sun/tools/jps/jps-l_2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-l_2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-lm.sh --- a/jdk/test/sun/tools/jps/jps-lm.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-lm.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-m.sh --- a/jdk/test/sun/tools/jps/jps-m.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-m.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-m_2.sh --- a/jdk/test/sun/tools/jps/jps-m_2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-m_2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-q.sh --- a/jdk/test/sun/tools/jps/jps-q.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-q.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-v_1.sh --- a/jdk/test/sun/tools/jps/jps-v_1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-v_1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jps/jps-vm_1.sh --- a/jdk/test/sun/tools/jps/jps-vm_1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jps/jps-vm_1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstack/Basic.sh --- a/jdk/test/sun/tools/jstack/Basic.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstack/Basic.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatClassOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatClassOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatClassOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatClassloadOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatClassloadOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatClassloadOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatCompilerOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatCompilerOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatCompilerOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatFileURITest1.sh --- a/jdk/test/sun/tools/jstat/jstatFileURITest1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatFileURITest1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcCapacityOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcCapacityOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcCapacityOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcCauseOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcCauseOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcCauseOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcNewOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcNewOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcNewOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcOldOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcOldOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcOldOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatHelp.sh --- a/jdk/test/sun/tools/jstat/jstatHelp.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatHelp.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 ] diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatLineCounts1.sh --- a/jdk/test/sun/tools/jstat/jstatLineCounts1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatLineCounts1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatLineCounts2.sh --- a/jdk/test/sun/tools/jstat/jstatLineCounts2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatLineCounts2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatLineCounts3.sh --- a/jdk/test/sun/tools/jstat/jstatLineCounts3.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatLineCounts3.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatLineCounts4.sh --- a/jdk/test/sun/tools/jstat/jstatLineCounts4.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatLineCounts4.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatOptions1.sh --- a/jdk/test/sun/tools/jstat/jstatOptions1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatOptions1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh --- a/jdk/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatSnap1.sh --- a/jdk/test/sun/tools/jstat/jstatSnap1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatSnap1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatSnap2.sh --- a/jdk/test/sun/tools/jstat/jstatSnap2.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatSnap2.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstat/jstatTimeStamp1.sh --- a/jdk/test/sun/tools/jstat/jstatTimeStamp1.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstat/jstatTimeStamp1.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstatd/jstatdDefaults.sh --- a/jdk/test/sun/tools/jstatd/jstatdDefaults.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstatd/jstatdDefaults.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 ] diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh --- a/jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 ] diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstatd/jstatdPort.sh --- a/jdk/test/sun/tools/jstatd/jstatdPort.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstatd/jstatdPort.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 ] diff -r c315c8424ce2 -r 3f7bd2de5067 jdk/test/sun/tools/jstatd/jstatdServerName.sh --- a/jdk/test/sun/tools/jstatd/jstatdServerName.sh Tue Sep 20 19:16:21 2011 -0700 +++ b/jdk/test/sun/tools/jstatd/jstatdServerName.sh Tue Sep 20 22:20:05 2011 -0400 @@ -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 ]