Mercurial > hg > truffle
comparison test/compiler/8013496/Test8013496.sh @ 10392:c07dd9be16e8
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.
Summary: Moved check that ReservedCodeCacheSize >= InitialCodeCacheSize to Arguments::check_vm_args_consistency(). As a result, the ordering in which the two parameters are given to the VM is not relevant. Added a regression test.
Reviewed-by: kvn, twisti
author | anoll |
---|---|
date | Fri, 31 May 2013 06:41:50 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10391:83dcb116fdb1 | 10392:c07dd9be16e8 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. | |
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
5 # | |
6 # This code is free software; you can redistribute it and/or modify it | |
7 # under the terms of the GNU General Public License version 2 only, as | |
8 # published by the Free Software Foundation. | |
9 # | |
10 # This code is distributed in the hope that it will be useful, but WITHOUT | |
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 # version 2 for more details (a copy is included in the LICENSE file that | |
14 # accompanied this code). | |
15 # | |
16 # You should have received a copy of the GNU General Public License version | |
17 # 2 along with this work; if not, write to the Free Software Foundation, | |
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
19 # | |
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
21 # or visit www.oracle.com if you need additional information or have any | |
22 # questions. | |
23 # | |
24 # | |
25 # @test | |
26 # @bug 8013496 | |
27 # @summary Test checks that the order in which ReversedCodeCacheSize and | |
28 # InitialCodeCacheSize are passed to the VM is irrelevant. | |
29 # @run shell Test8013496.sh | |
30 # | |
31 # | |
32 ## some tests require path to find test source dir | |
33 if [ "${TESTSRC}" = "" ] | |
34 then | |
35 TESTSRC=${PWD} | |
36 echo "TESTSRC not set. Using "${TESTSRC}" as default" | |
37 fi | |
38 echo "TESTSRC=${TESTSRC}" | |
39 ## Adding common setup Variables for running shell tests. | |
40 . ${TESTSRC}/../../test_env.sh | |
41 set -x | |
42 | |
43 ${TESTJAVA}/bin/java ${TESTVMOPTS} -XX:ReservedCodeCacheSize=2m -XX:InitialCodeCacheSize=500K -version > 1.out 2>&1 | |
44 ${TESTJAVA}/bin/java ${TESTVMOPTS} -XX:InitialCodeCacheSize=500K -XX:ReservedCodeCacheSize=2m -version > 2.out 2>&1 | |
45 | |
46 diff 1.out 2.out | |
47 | |
48 result=$? | |
49 if [ $result -eq 0 ] ; then | |
50 echo "Test Passed" | |
51 exit 0 | |
52 else | |
53 echo "Test Failed" | |
54 exit 1 | |
55 fi |