Ignore:
Timestamp:
Mar 26, 2011, 8:39:20 PM (14 years ago)
Author:
dmik
Message:

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

Location:
trunk/openjdk
Files:
71 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/openjdk

  • trunk/openjdk/jdk/test/sun/tools/common/ApplicationSetup.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
    24 #
    25 
    26 
    27 # Support function to start and stop a given application
    28 
    29 # Starts a given application as background process, usage:
    30 #   startApplication <class> [args...]
    31 #
    32 # Waits for application to print something to indicate it is running
    33 # (and initialized). Output is directed to ${TESTCLASSES}/Application.out.
    34 # Sets $pid to be the process-id of the application.
    35 
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
     24#
     25
     26
     27# Support functions to start, stop, wait for or kill a given SimpleApplication
     28
     29# Starts a given app as background process, usage:
     30#   startApplication <class> port-file [args...]
     31#
     32# The following variables are set:
     33#
     34# appJavaPid  - application's Java pid
     35# appOtherPid - pid associated with the app other than appJavaPid
     36# appPidList  - all pids associated with the app
     37# appOutput   - file containing stdout and stderr from the app
     38#
     39# Waits for at least one line of output from the app to indicate
     40# that it is up and running.
     41#
    3642startApplication()
    3743{
    38   OUTPUTFILE=${TESTCLASSES}/Application.out
    39   ${JAVA} $1 $2 $3 $4 $5 $6 > ${OUTPUTFILE} &
    40   pid="$!"
    41                                                                                                      
    42   # MKS creates an intermediate shell to launch ${JAVA} so
    43   # ${pid} is not the actual pid. We have put in a small sleep
    44   # to give the intermediate shell process time to launch the
    45   # "java" process.
    46   if [ "$OS" = "Windows" ]; then
    47     sleep 2
    48     realpid=`ps -o pid,ppid,comm|grep ${pid}|grep "java"|cut -c1-6`
    49     pid=${realpid}
     44  appOutput="${TESTCLASSES}/Application.out"
     45
     46  ${JAVA} -classpath "${TESTCLASSES}" "$@" > "$appOutput" 2>&1 &
     47  appJavaPid="$!"
     48  appOtherPid=
     49  appPidList="$appJavaPid"
     50
     51  echo "INFO: waiting for $1 to initialize..."
     52  _cnt=0
     53  while true; do
     54    # if the app doesn't start then the JavaTest/JTREG timeout will
     55    # kick in so this isn't really a endless loop
     56    sleep 1
     57    out=`tail -1 "$appOutput"`
     58    if [ -n "$out" ]; then
     59      # we got some output from the app so it's running
     60      break
     61    fi
     62    _cnt=`expr $_cnt + 1`
     63    echo "INFO: waited $_cnt second(s) ..."
     64  done
     65  unset _cnt
     66
     67  if $isWindows; then
     68    # Windows requires special handling
     69    appOtherPid="$appJavaPid"
     70
     71    if $isCygwin; then
     72      appJavaPid=`ps -p "$appOtherPid" \
     73        | sed -n '
     74          # See if $appOtherPid is in PID column; there are sometimes
     75          # non-blanks in column 1 (I and S observed so far)
     76          /^.'"${PATTERN_WS}${PATTERN_WS}*${appOtherPid}${PATTERN_WS}"'/{
     77            # strip PID column
     78            s/^.'"${PATTERN_WS}${PATTERN_WS}*${appOtherPid}${PATTERN_WS}${PATTERN_WS}"'*//
     79            # strip PPID column
     80            s/^[1-9][0-9]*'"${PATTERN_WS}${PATTERN_WS}"'*//
     81            # strip PGID column
     82            s/^[1-9][0-9]*'"${PATTERN_WS}${PATTERN_WS}"'*//
     83            # strip everything after WINPID column
     84            s/'"${PATTERN_WS}"'.*//
     85            p
     86            q
     87          }
     88        '`
     89      echo "INFO: Cygwin pid=$appOtherPid maps to Windows pid=$appJavaPid"
     90    else
     91      # show PID, PPID and COMM columns only
     92      appJavaPid=`ps -o pid,ppid,comm \
     93        | sed -n '
     94          # see if appOtherPid is in either PID or PPID columns
     95          /'"${PATTERN_WS}${appOtherPid}${PATTERN_WS}"'/{
     96            # see if this is a java command
     97            /java'"${PATTERN_EOL}"'/{
     98              # strip leading white space
     99              s/^'"${PATTERN_WS}${PATTERN_WS}"'*//
     100              # strip everything after the first word
     101              s/'"${PATTERN_WS}"'.*//
     102              # print the pid and we are done
     103              p
     104              q
     105            }
     106          }
     107        '`
     108      echo "INFO: MKS shell pid=$appOtherPid; Java pid=$appJavaPid"
     109    fi
     110
     111    if [ -z "$appJavaPid" ]; then
     112      echo "ERROR: could not find app's Java pid." >&2
     113      killApplication
     114      exit 2
     115    fi
     116    appPidList="$appOtherPid $appJavaPid"
    50117  fi
    51                                                                                                      
    52   echo "Waiting for Application to initialize..."
    53   attempts=0
    54   while true; do
    55     sleep 1
    56     out=`tail -1 ${OUTPUTFILE}`
    57     if [ ! -z "$out" ]; then
    58       break
    59     fi
    60     attempts=`expr $attempts + 1`
    61     echo "Waiting $attempts second(s) ..."
    62   done
    63 
    64   echo "Application is process $pid"
    65 }
    66 
    67 # Stops an application by invoking the given class and argument, usage:
    68 #   stopApplication <class> <argument>
     118
     119  echo "INFO: $1 is process $appJavaPid"
     120  echo "INFO: $1 output is in $appOutput"
     121}
     122
     123
     124# Stops a simple application by invoking ShutdownSimpleApplication
     125# class with a specific port-file, usage:
     126#   stopApplication port-file
     127#
     128# Note: When this function returns, the SimpleApplication (or a subclass)
     129# may still be running because the application has not yet reached the
     130# shutdown check.
     131#
    69132stopApplication()
    70133{
    71   $JAVA -classpath "${TESTCLASSES}" $1 $2
    72 }
    73 
     134  $JAVA -classpath "${TESTCLASSES}" ShutdownSimpleApplication $1
     135}
     136
     137
     138# Wait for a simple application to stop running.
     139#
     140waitForApplication() {
     141  if [ $isWindows = false ]; then
     142    # non-Windows is easy; just one process
     143    echo "INFO: waiting for $appJavaPid"
     144    set +e
     145    wait "$appJavaPid"
     146    set -e
     147
     148  elif $isCygwin; then
     149    # Cygwin pid and not the Windows pid
     150    echo "INFO: waiting for $appOtherPid"
     151    set +e
     152    wait "$appOtherPid"
     153    set -e
     154
     155  else # implied isMKS
     156    # MKS has intermediate shell and Java process
     157    echo "INFO: waiting for $appJavaPid"
     158
     159    # appJavaPid can be empty if pid search in startApplication() failed
     160    if [ -n "$appJavaPid" ]; then
     161      # only need to wait for the Java process
     162      set +e
     163      wait "$appJavaPid"
     164      set -e
     165    fi
     166  fi
     167}
     168
     169
     170# Kills a simple application by sending a SIGTERM to the appropriate
     171# process(es); on Windows SIGQUIT (-9) is used.
     172#
     173killApplication()
     174{
     175  if [ $isWindows = false ]; then
     176    # non-Windows is easy; just one process
     177    echo "INFO: killing $appJavaPid"
     178    set +e
     179    kill -TERM "$appJavaPid"  # try a polite SIGTERM first
     180    sleep 2
     181    # send SIGQUIT (-9) just in case SIGTERM didn't do it
     182    # but don't show any complaints
     183    kill -QUIT "$appJavaPid" > /dev/null 2>&1
     184    wait "$appJavaPid"
     185    set -e
     186
     187  elif $isCygwin; then
     188    # Cygwin pid and not the Windows pid
     189    echo "INFO: killing $appOtherPid"
     190    set +e
     191    kill -9 "$appOtherPid"
     192    wait "$appOtherPid"
     193    set -e
     194
     195  else # implied isMKS
     196    # MKS has intermediate shell and Java process
     197    echo "INFO: killing $appPidList"
     198    set +e
     199    kill -9 $appPidList
     200    set -e
     201
     202    # appJavaPid can be empty if pid search in startApplication() failed
     203    if [ -n "$appJavaPid" ]; then
     204      # only need to wait for the Java process
     205      set +e
     206      wait "$appJavaPid"
     207      set -e
     208    fi
     209  fi
     210}
  • trunk/openjdk/jdk/test/sun/tools/common/CommonSetup.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
    2626
    27 # Common setup for tool tests.
     27# Common setup for tool tests and other tests that use jtools.
    2828# Checks that TESTJAVA, TESTSRC, and TESTCLASSES environment variables are set.
    29 # Creates the following for use by the tool tests
    30 #   JAVA     java launcher
    31 #   JSTACK   jstack utility
    32 #   JMAP     jmap utility
    33 #   JINFO    jinfo utility
    34 #   JHAT     jhat utility
    35 #   PS       path separator (";" or ":")
    36 #   OS       operating system
     29#
     30# Creates the following constants for use by the caller:
     31#   JAVA        - java launcher
     32#   JHAT        - jhat utility
     33#   JINFO       - jinfo utility
     34#   JMAP        - jmap utility
     35#   JPS         - jps utility
     36#   JSTACK      - jstack utility
     37#   OS          - operating system name
     38#   PATTERN_EOL - grep or sed end-of-line pattern
     39#   PATTERN_WS  - grep or sed whitespace pattern
     40#   PS          - path separator (";" or ":")
     41#
     42# Sets the following variables:
     43#
     44#   isCygwin  - true if environment is Cygwin
     45#   isMKS     - true if environment is MKS
     46#   isLinux   - true if OS is Linux
     47#   isSolaris - true if OS is Solaris
     48#   isWindows - true if OS is Windows
    3749
    3850
    39 if [ "${TESTJAVA}" = "" ]
    40 then
    41   echo "TESTJAVA not set.  Test cannot execute.  Failed."
     51if [ -z "${TESTJAVA}" ]; then
     52  echo "ERROR: TESTJAVA not set.  Test cannot execute.  Failed."
    4253  exit 1
    4354fi
    44                                                                                                      
    45 if [ "${TESTSRC}" = "" ]
    46 then
    47   echo "TESTSRC not set.  Test cannot execute.  Failed."
     55
     56if [ -z "${TESTSRC}" ]; then
     57  echo "ERROR: TESTSRC not set.  Test cannot execute.  Failed."
    4858  exit 1
    4959fi
    50                                                                                                      
    51 if [ "${TESTCLASSES}" = "" ]
    52 then
    53   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
     60
     61if [ -z "${TESTCLASSES}" ]; then
     62  echo "ERROR: TESTCLASSES not set.  Test cannot execute.  Failed."
    5463  exit 1
    5564fi
    56                                                                                                      
     65
     66# only enable these after checking the expected incoming env variables
     67set -eu
     68
    5769JAVA="${TESTJAVA}/bin/java"
     70JHAT="${TESTJAVA}/bin/jhat"
     71JINFO="${TESTJAVA}/bin/jinfo"
     72JMAP="${TESTJAVA}/bin/jmap"
     73JPS="${TESTJAVA}/bin/jps"
    5874JSTACK="${TESTJAVA}/bin/jstack"
    59 JMAP="${TESTJAVA}/bin/jmap"
    60 JINFO="${TESTJAVA}/bin/jinfo"
    61 JHAT="${TESTJAVA}/bin/jhat"
     75
     76isCygwin=false
     77isMKS=false
     78isLinux=false
     79isSolaris=false
     80isUnknownOS=false
     81isWindows=false
    6282
    6383OS=`uname -s`
    6484
     85# start with some UNIX like defaults
     86PATTERN_EOL='$'
     87# blank and tab
     88PATTERN_WS='[   ]'
     89PS=":"
     90
    6591case "$OS" in
     92  CYGWIN* )
     93    OS="Windows"
     94    PATTERN_EOL='[
     95]*$'
     96    # blank and tab
     97    PATTERN_WS='[ \t]'
     98    isCygwin=true
     99    isWindows=true
     100    ;;
     101  Linux )
     102    OS="Linux"
     103    isLinux=true
     104    ;;
     105  SunOS )
     106    OS="Solaris"
     107    isSolaris=true
     108    ;;
    66109  Windows* )
     110    OS="Windows"
     111    PATTERN_EOL='[
     112]*$'
    67113    PS=";"
    68     OS="Windows"
     114    isWindows=true
    69115    ;;
    70116  * )
    71     PS=":"
     117    isUnknownOS=true
    72118    ;;
    73119esac
    74 
  • trunk/openjdk/jdk/test/sun/tools/common/ShutdownSimpleApplication.java

    r2 r278  
    11/*
    2  * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
    2424/*
     25 * Used to shutdown SimpleApplication (or a subclass). The argument to
     26 * this class is the name of a file that contains the TCP port number
     27 * on which SimpleApplication (or a subclass) is listening.
    2528 *
    26  *
    27  * Used to shutdown SimpleApplication. The argument to this class is
    28  * the TCP port number where SimpleApplication is listening.
     29 * Note: When this program returns, the SimpleApplication (or a subclass)
     30 * may still be running because the application has not yet reached the
     31 * shutdown check.
    2932 */
    3033import java.net.Socket;
     
    3639    public static void main(String args[]) throws Exception {
    3740
     41        if (args.length != 1) {
     42            throw new RuntimeException("Usage: ShutdownSimpleApplication" +
     43                " port-file");
     44        }
     45
    3846        // read the (TCP) port number from the given file
    3947
     
    4351        int n = fis.read(b);
    4452        if (n < 1) {
    45             throw new RuntimeException("Empty file");
     53            throw new RuntimeException("Empty port-file");
    4654        }
    4755        fis.close();
    4856
    4957        String str = new String(b, 0, n, "UTF-8");
    50         System.out.println("Port number of application is: " + str);
     58        System.out.println("INFO: Port number of SimpleApplication: " + str);
    5159        int port = Integer.parseInt(str);
    5260
    5361        // Now connect to the port (which will shutdown application)
    5462
    55         System.out.println("Connecting to port " + port +
    56             " to shutdown Application ...");
     63        System.out.println("INFO: Connecting to port " + port +
     64            " to shutdown SimpleApplication ...");
     65        System.out.flush();
    5766
    5867        Socket s = new Socket();
    5968        s.connect( new InetSocketAddress(port) );
    6069        s.close();
     70
     71        System.out.println("INFO: done connecting to SimpleApplication.");
     72        System.out.flush();
     73
     74        System.exit(0);
    6175    }
    6276}
  • trunk/openjdk/jdk/test/sun/tools/common/SimpleApplication.java

    r2 r278  
    11/*
    2  * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
    2424/*
     25 * A simple application used by unit tests. The first argument to this
     26 * class is the name of a file to which a TCP port number can be written.
    2527 *
    26  *
    27  * A simple application used for tool unit tests. It does nothing else
    28  * bind to a TCP port and wait for a shutdown message.
     28 * By default, this class does nothing other than bind to a TCP port,
     29 * write the TCP port number to a file, and wait for an incoming connection
     30 * in order to complete the application shutdown protocol.
    2931 */
    3032import java.net.Socket;
     
    3436
    3537public class SimpleApplication {
    36     public static void main(String args[]) throws Exception {
     38    private static SimpleApplication myApp;      // simple app or a subclass
     39    private static String            myAppName;  // simple app name
     40    private static int               myPort;     // coordination port #
     41    private static ServerSocket      mySS;       // coordination socket
     42
     43    // protected so a subclass can extend it; not public so creation is
     44    // limited.
     45    protected SimpleApplication() {
     46        // save simple app (or subclass) name for messages
     47        myAppName = getClass().getName();
     48    }
     49
     50    // return the simple application (or a subclass)
     51    final public static SimpleApplication getMyApp() {
     52        return myApp;
     53    }
     54
     55    // set the simple application (for use by a subclass)
     56    final public static void setMyApp(SimpleApplication _myApp) {
     57        myApp = _myApp;
     58    }
     59
     60    // execute the application finish protocol
     61    final public void doMyAppFinish(String[] args) throws Exception {
     62        System.out.println("INFO: " + myAppName + " is waiting on port: " +
     63            myPort);
     64        System.out.flush();
     65
     66        // wait for test harness to connect
     67        Socket s = mySS.accept();
     68        s.close();
     69        mySS.close();
     70
     71        System.out.println("INFO: " + myAppName + " is shutting down.");
     72        System.out.flush();
     73    }
     74
     75    // execute the application start protocol
     76    final public void doMyAppStart(String[] args) throws Exception {
     77        if (args.length < 1) {
     78            throw new RuntimeException("Usage: " + myAppName +
     79                " port-file [arg(s)]");
     80        }
     81
    3782        // bind to a random port
    38         ServerSocket ss = new ServerSocket(0);
    39         int port = ss.getLocalPort();
     83        mySS = new ServerSocket(0);
     84        myPort = mySS.getLocalPort();
    4085
    4186        // Write the port number to the given file
    4287        File f = new File(args[0]);
    4388        FileOutputStream fos = new FileOutputStream(f);
    44         fos.write( Integer.toString(port).getBytes("UTF-8") );
     89        fos.write( Integer.toString(myPort).getBytes("UTF-8") );
    4590        fos.close();
    4691
    47         System.out.println("Application waiting on port: " + port);
     92        System.out.println("INFO: " + myAppName + " created socket on port: " +
     93            myPort);
     94        System.out.flush();
     95    }
     96
     97    // execute the app work (subclass can override this)
     98    public void doMyAppWork(String[] args) throws Exception {
     99    }
     100
     101    public static void main(String[] args) throws Exception {
     102        if (myApp == null) {
     103            // create myApp since a subclass hasn't done so
     104            myApp = new SimpleApplication();
     105        }
     106
     107        myApp.doMyAppStart(args);   // do the app start protocol
     108
     109        System.out.println("INFO: " + myAppName + " is calling doMyAppWork()");
     110        System.out.flush();
     111        myApp.doMyAppWork(args);    // do the app work
     112        System.out.println("INFO: " + myAppName + " returned from" +
     113            " doMyAppWork()");
    48114        System.out.flush();
    49115
    50         // wait for test harness to connect
    51         Socket s = ss.accept();
    52         s.close();
    53         ss.close();
     116        myApp.doMyAppFinish(args);  // do the app finish protocol
    54117
    55         System.out.println("Application shutdown.");
     118        System.exit(0);
    56119    }
    57120}
  • trunk/openjdk/jdk/test/sun/tools/jconsole/ImmutableResourceTest.java

    r2 r278  
    11/*
    2  * Copyright 2005-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/jconsole/ImmutableResourceTest.sh

    r2 r278  
    11#
    2 # Copyright 2005-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jconsole/ResourceCheckTest.java

    r2 r278  
    11/*
    2  * Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/jconsole/ResourceCheckTest.sh

    r2 r278  
    11#
    2 # Copyright 2004-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jhat/HatHeapDump1Test.java

    r2 r278  
    11/*
    2  * Copyright 2005-2007 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/jhat/HatRun.java

    r2 r278  
    11/*
    2  * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/jhat/HelloWorld.java

    r2 r278  
    11/*
    2  * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/jhat/ParseTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    3333
    3434. ${TESTSRC}/../common/CommonSetup.sh
    35 . ${TESTSRC}/../common/ApplicationSetup.sh
     35
     36# all return statuses are checked in this test
     37set +e
     38
     39failed=0
    3640
    3741DUMPFILE="minimal.bin"
  • trunk/openjdk/jdk/test/sun/tools/jinfo/Basic.sh

    r2 r278  
    22
    33#
    4 # Copyright 2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    3636. ${TESTSRC}/../common/ApplicationSetup.sh
    3737
    38 # Start application (send output to shutdown.port)
     38# Start application and use PORTFILE for coordination
    3939PORTFILE="${TESTCLASSES}"/shutdown.port
    40 startApplication \
    41     -classpath "${TESTCLASSES}" SimpleApplication "${PORTFILE}"
     40startApplication SimpleApplication "${PORTFILE}"
     41
     42# all return statuses are checked in this test
     43set +e
    4244
    4345failed=0
    4446
    45 if [ "$OS" != "Windows" ]; then
     47if [ $isWindows = false ]; then
    4648    # -sysprops option
    47     ${JINFO} -sysprops $pid
     49    ${JINFO} -sysprops $appJavaPid
    4850    if [ $? != 0 ]; then failed=1; fi
    4951
    5052    # -flags option
    51     ${JINFO} -flags $pid
     53    ${JINFO} -flags $appJavaPid
    5254    if [ $? != 0 ]; then failed=1; fi
    5355
    5456    # no option
    55     ${JINFO} $pid
     57    ${JINFO} $appJavaPid
    5658    if [ $? != 0 ]; then failed=1; fi
    5759
     
    6062
    6163# -flag option
    62 ${JINFO} -flag +PrintGC $pid
     64${JINFO} -flag +PrintGC $appJavaPid
    6365if [ $? != 0 ]; then failed=1; fi
    6466
    65 ${JINFO} -flag -PrintGC $pid
     67${JINFO} -flag -PrintGC $appJavaPid
    6668if [ $? != 0 ]; then failed=1; fi
    6769
    68 ${JINFO} -flag PrintGC $pid
     70${JINFO} -flag PrintGC $appJavaPid
    6971if [ $? != 0 ]; then failed=1; fi
    7072
    71 if [ "$OS" = "SunOS" ]; then
     73if $isSolaris; then
    7274
    73     ${JINFO} -flag +ExtendedDTraceProbes $pid
     75    ${JINFO} -flag +ExtendedDTraceProbes $appJavaPid
    7476    if [ $? != 0 ]; then failed=1; fi
    7577
    76     ${JINFO} -flag -ExtendedDTraceProbes $pid
     78    ${JINFO} -flag -ExtendedDTraceProbes $appJavaPid
    7779    if [ $? != 0 ]; then failed=1; fi
    7880
    79     ${JINFO} -flag ExtendedDTraceProbes $pid
     81    ${JINFO} -flag ExtendedDTraceProbes $appJavaPid
    8082    if [ $? != 0 ]; then failed=1; fi
    8183
    8284fi
    8385
    84 stopApplication ShutdownSimpleApplication "${PORTFILE}"
     86set -e
     87
     88stopApplication "${PORTFILE}"
     89waitForApplication
    8590
    8691exit $failed
    87 
  • trunk/openjdk/jdk/test/sun/tools/jmap/Basic.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    3636. ${TESTSRC}/../common/ApplicationSetup.sh
    3737
    38 # Start application (send output to shutdown.port)
     38# Start application and use PORTFILE for coordination
    3939PORTFILE="${TESTCLASSES}"/shutdown.port
    40 startApplication \
    41     -classpath "${TESTCLASSES}" SimpleApplication "${PORTFILE}"
     40startApplication SimpleApplication "${PORTFILE}"
     41
     42# all return statuses are checked in this test
     43set +e
    4244
    4345failed=0
    4446
    4547# -histo[:live] option
    46 ${JMAP} -histo $pid
     48${JMAP} -histo $appJavaPid
    4749if [ $? != 0 ]; then failed=1; fi
    4850
    49 ${JMAP} -histo:live $pid
     51${JMAP} -histo:live $appJavaPid
    5052if [ $? != 0 ]; then failed=1; fi
    5153
    5254# -dump option
    53 p=`expr $pid`
    54 DUMPFILE="java_pid${p}.hprof"
    55 ${JMAP} -dump:format=b,file=${DUMPFILE} $pid
     55DUMPFILE="java_pid${appJavaPid}.hprof"
     56${JMAP} -dump:format=b,file=${DUMPFILE} $appJavaPid
    5657if [ $? != 0 ]; then failed=1; fi
    5758
     
    6465
    6566# -dump:live option
    66 ${JMAP} -dump:live,format=b,file=${DUMPFILE} $pid
     67${JMAP} -dump:live,format=b,file=${DUMPFILE} $appJavaPid
    6768if [ $? != 0 ]; then failed=1; fi
    6869
     
    7273
    7374# dump file is large so remove it
    74 rm ${DUMPFILE}
     75rm -f ${DUMPFILE}
    7576
    76 stopApplication ShutdownSimpleApplication "${PORTFILE}"
     77set -e
     78
     79stopApplication "${PORTFILE}"
     80waitForApplication
    7781
    7882exit $failed
    79 
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-Defaults.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-V_2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-Vm_2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-Vvm.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-Vvml.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-Vvml_2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-help.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-l_1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-l_2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-lm.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-m.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-m_2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-q.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-v_1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jps/jps-vm_1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/CheckEngine.java

    r2 r278  
    11/*
    2  * Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 * accompanied this code).
    2323 *
     
    2626 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2727 *
    28  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    29  * CA 95054 USA or visit www.sun.com if you need additional information or
    30  * have any questions.
     28 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     29 * or visit www.oracle.com if you need additional information or have any
     30 * questions.
    3131 */
    3232
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/Hello.java

    r2 r278  
    11/*
    2  * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/common.sh

    r2 r278  
    11#
    2 # Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
     
    4444        PS=";"
    4545        FS="\\"
     46        # MKS diff deals with trailing CRs automatically
     47        golden_diff="diff"
     48        ;;
     49    CYGWIN*)
     50        PS=":"
     51        FS="/"
     52        # Cygwin diff needs to be told to ignore trailing CRs
     53        golden_diff="diff --strip-trailing-cr"
    4654        ;;
    4755    *)
    4856        PS=":"
    4957        FS="/"
     58        # Assume any other platform doesn't have the trailing CR stuff
     59        golden_diff="diff"
    5060        ;;
    5161    esac
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-DTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-argsTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-cpTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-eTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    4343${JRUNSCRIPT} -e "println('hello')" > jrunscript-eTest.out 2>&1
    4444
    45 diff jrunscript-eTest.out ${TESTSRC}/dash-e.out
     45$golden_diff jrunscript-eTest.out ${TESTSRC}/dash-e.out
    4646if [ $? != 0 ]
    4747then
     
    5656${JRUNSCRIPT} -l js -e "println('hello')" > jrunscript-eTest.out 2>&1
    5757
    58 diff jrunscript-eTest.out ${TESTSRC}/dash-e.out
     58$golden_diff jrunscript-eTest.out ${TESTSRC}/dash-e.out
    5959if [ $? != 0 ]
    6060then
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-fTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    4343${JRUNSCRIPT} -f ${TESTSRC}/hello.js > jrunscript-fTest.out 2>&1
    4444
    45 diff jrunscript-fTest.out ${TESTSRC}/dash-f.out
     45$golden_diff jrunscript-fTest.out ${TESTSRC}/dash-f.out
    4646if [ $? != 0 ]
    4747then
     
    5757${JRUNSCRIPT} -l js -f ${TESTSRC}/hello.js > jrunscript-fTest.out 2>&1
    5858
    59 diff jrunscript-fTest.out ${TESTSRC}/dash-f.out
     59$golden_diff jrunscript-fTest.out ${TESTSRC}/dash-f.out
    6060if [ $? != 0 ]
    6161then
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-helpTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
  • trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscriptTest.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    5050EOF
    5151
    52 diff jrunscriptTest.out ${TESTSRC}/repl.out
     52$golden_diff jrunscriptTest.out ${TESTSRC}/repl.out
    5353if [ $? != 0 ]
    5454then
     
    6868EOF
    6969
    70 diff jrunscriptTest.out ${TESTSRC}/repl.out
     70$golden_diff jrunscriptTest.out ${TESTSRC}/repl.out
    7171if [ $? != 0 ]
    7272then
  • trunk/openjdk/jdk/test/sun/tools/jstack/Basic.sh

    r2 r278  
    22
    33#
    4 # Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
     
    3636. ${TESTSRC}/../common/ApplicationSetup.sh
    3737
    38 # Start application (send output to shutdown.port)
     38# Start application and use PORTFILE for coordination
    3939PORTFILE="${TESTCLASSES}"/shutdown.port
    40 startApplication \
    41     -classpath "${TESTCLASSES}" SimpleApplication "${PORTFILE}"
     40startApplication SimpleApplication "${PORTFILE}"
     41
     42# all return statuses are checked in this test
     43set +e
    4244
    4345failed=0
    4446
    4547# normal
    46 $JSTACK $pid 2>&1
     48$JSTACK $appJavaPid 2>&1
    4749if [ $? != 0 ]; then failed=1; fi
    4850
    4951# long
    50 $JSTACK -l $pid 2>&1
     52$JSTACK -l $appJavaPid 2>&1
    5153if [ $? != 0 ]; then failed=1; fi
    5254
    53 stopApplication ShutdownSimpleApplication "${PORTFILE}"
     55set -e
     56
     57stopApplication "${PORTFILE}"
     58waitForApplication
    5459 
    5560exit $failed
    56 
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatClassOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatCompilerOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatFileURITest1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcCapacityOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcCauseOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcNewOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcOldOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatHelp.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts3.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts4.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatOptions1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatSnap1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatSnap2.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstat/jstatTimeStamp1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdDefaults.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdPort.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdServerName.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdUsage1.sh

    r2 r278  
    11#
    2 # Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
  • trunk/openjdk/jdk/test/sun/tools/native2ascii/Native2AsciiTests.sh

    r2 r278  
    22
    33#
    4 # Copyright 2002-2005 Sun Microsystems, Inc.  All Rights Reserved.
     4# Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved.
    55# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    66#
     
    1919# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2020#
    21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
     21# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     22# or visit www.oracle.com if you need additional information or have any
     23# questions.
    2424#
    2525
  • trunk/openjdk/jdk/test/sun/tools/native2ascii/NativeErrors.java

    r2 r278  
    11/*
    2  * Copyright 1998-1999 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/native2ascii/resources/ImmutableResourceTest.java

    r2 r278  
    11/*
    2  * Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
    33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44 *
     
    1717 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818 *
    19  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20  * CA 95054 USA or visit www.sun.com if you need additional information or
    21  * have any questions.
     19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20 * or visit www.oracle.com if you need additional information or have any
     21 * questions.
    2222 */
    2323
  • trunk/openjdk/jdk/test/sun/tools/native2ascii/resources/ImmutableResourceTest.sh

    r2 r278  
    11#
    2 # Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     2# Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
    33# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    44#
     
    1717# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1818#
    19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    20 # CA 95054 USA or visit www.sun.com if you need additional information or
    21 # have any questions.
     19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
     20# or visit www.oracle.com if you need additional information or have any
     21# questions.
    2222#
    2323
Note: See TracChangeset for help on using the changeset viewer.