hotspot/test/compiler/8013496/Test8013496.sh
author jjg
Sun, 20 Oct 2013 12:01:43 -0700
changeset 21480 9d08c2d0fafd
parent 17874 ca460b733b76
permissions -rw-r--r--
8025109: Better encapsulation for AnnotatedType Reviewed-by: jjg Contributed-by: wdietl@gmail.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17874
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     1
#!/bin/sh
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     2
# 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     3
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     4
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     5
# 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     6
# This code is free software; you can redistribute it and/or modify it
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     7
# under the terms of the GNU General Public License version 2 only, as
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     8
# published by the Free Software Foundation.
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
     9
# 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    10
# This code is distributed in the hope that it will be useful, but WITHOUT
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    12
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    13
# version 2 for more details (a copy is included in the LICENSE file that
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    14
# accompanied this code).
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    15
# 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    16
# You should have received a copy of the GNU General Public License version
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    17
# 2 along with this work; if not, write to the Free Software Foundation,
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    18
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    19
# 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    20
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    21
# or visit www.oracle.com if you need additional information or have any
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    22
# questions.
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    23
# 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    24
#
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    25
# @test
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    26
# @bug 8013496
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    27
# @summary Test checks that the order in which ReversedCodeCacheSize and 
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    28
#          InitialCodeCacheSize are passed to the VM is irrelevant.  
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    29
# @run shell Test8013496.sh
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    30
#
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    31
#
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    32
## some tests require path to find test source dir
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    33
if [ "${TESTSRC}" = "" ]
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    34
then
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    35
  TESTSRC=${PWD}
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    36
  echo "TESTSRC not set.  Using "${TESTSRC}" as default"
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    37
fi
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    38
echo "TESTSRC=${TESTSRC}"
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    39
## Adding common setup Variables for running shell tests.
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    40
. ${TESTSRC}/../../test_env.sh
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    41
set -x
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    42
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    43
${TESTJAVA}/bin/java ${TESTVMOPTS} -XX:ReservedCodeCacheSize=2m -XX:InitialCodeCacheSize=500K -version > 1.out 2>&1
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    44
${TESTJAVA}/bin/java ${TESTVMOPTS} -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=2m -version > 2.out 2>&1
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    45
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    46
diff 1.out 2.out
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    47
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    48
result=$?
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    49
if [ $result -eq 0 ] ; then  
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    50
  echo "Test Passed"
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    51
  exit 0
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    52
else
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    53
  echo "Test Failed"
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    54
  exit 1
ca460b733b76 8013496: Code cache management command line options work only in special order. Another order of arguments does not deliver the second parameter to the jvm.
anoll
parents:
diff changeset
    55
fi