Mercurial > hg > truffle
annotate test/runtime/7167069/PrintAsFlag.java @ 13388:5280822ddfcd
6626412: jstack using SA prints some info messages into err stream
Reviewed-by: coleenp, farvidsson, jbachorik, dsamersoff, sspitsyn
author | sla |
---|---|
date | Thu, 14 Nov 2013 20:03:15 +0100 |
parents | f47478089efc |
children |
rev | line source |
---|---|
6049
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
1 /* |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
4 * |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
8 * |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
13 * accompanied this code). |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
14 * |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
18 * |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
21 * questions. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
22 * |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
23 */ |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
24 |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
25 /* |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
26 * Note that in the run command below the only important flag is PrintCommandLineFlags. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
27 * The others are just flags of all types; bool, intx, uintx, uint64_t, double and ccstr. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
28 * |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
29 * @test PrintAsFlag |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
30 * @summary verify that Flag::print_as_flag() works correctly. This is used by "jinfo -flag" and -XX:+PrintCommandLineFlags. |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
31 * @run main/othervm -XX:+PrintCommandLineFlags -XX:-ShowMessageBoxOnError -XX:BiasedLockingStartupDelay=4000 -XX:ParallelGCThreads=4 -XX:MaxRAM=1G -XX:CMSSmallCoalSurplusPercent=1.05 -XX:ErrorFile="file" PrintAsFlag |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
32 */ |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
33 |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
34 public class PrintAsFlag { |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
35 public static void main(String... args) { |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
36 System.out.printf("Done"); |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
37 } |
f47478089efc
7167069: 6 VM flags crash the VM when queried via jinfo
brutisso
parents:
diff
changeset
|
38 } |