Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 1147:75bd253e25dd
6637203: Classunloading messages go to stdout rather than Xloggc file, causing hangs when stdout is closed
Summary: Decoupled TraceClassUnloading from verbose:gc, JVMTI_VERBOSE_GC and PrintGC[Details], making it settable in a manner identical to TraceClassLoading. Reverted an inadvertent change of TraceClassUnloading output in a previous changeset from gclog back to tty.
Reviewed-by: coleenp, dholmes, jmasa, poonam
author | ysr |
---|---|
date | Mon, 04 Jan 2010 14:51:26 -0800 |
parents | e018e6884bd8 |
children | 0579c695832f |
comparison
equal
deleted
inserted
replaced
1146:504830073409 | 1147:75bd253e25dd |
---|---|
1864 if (!strcmp(tail, ":class") || !strcmp(tail, "")) { | 1864 if (!strcmp(tail, ":class") || !strcmp(tail, "")) { |
1865 FLAG_SET_CMDLINE(bool, TraceClassLoading, true); | 1865 FLAG_SET_CMDLINE(bool, TraceClassLoading, true); |
1866 FLAG_SET_CMDLINE(bool, TraceClassUnloading, true); | 1866 FLAG_SET_CMDLINE(bool, TraceClassUnloading, true); |
1867 } else if (!strcmp(tail, ":gc")) { | 1867 } else if (!strcmp(tail, ":gc")) { |
1868 FLAG_SET_CMDLINE(bool, PrintGC, true); | 1868 FLAG_SET_CMDLINE(bool, PrintGC, true); |
1869 FLAG_SET_CMDLINE(bool, TraceClassUnloading, true); | |
1870 } else if (!strcmp(tail, ":jni")) { | 1869 } else if (!strcmp(tail, ":jni")) { |
1871 FLAG_SET_CMDLINE(bool, PrintJNIResolving, true); | 1870 FLAG_SET_CMDLINE(bool, PrintJNIResolving, true); |
1872 } | 1871 } |
1873 // -da / -ea / -disableassertions / -enableassertions | 1872 // -da / -ea / -disableassertions / -enableassertions |
1874 // These accept an optional class/package name separated by a colon, e.g., | 1873 // These accept an optional class/package name separated by a colon, e.g., |
2718 } | 2717 } |
2719 | 2718 |
2720 if (PrintGCDetails) { | 2719 if (PrintGCDetails) { |
2721 // Turn on -verbose:gc options as well | 2720 // Turn on -verbose:gc options as well |
2722 PrintGC = true; | 2721 PrintGC = true; |
2723 if (FLAG_IS_DEFAULT(TraceClassUnloading)) { | |
2724 TraceClassUnloading = true; | |
2725 } | |
2726 } | 2722 } |
2727 | 2723 |
2728 #if defined(_LP64) && defined(COMPILER1) | 2724 #if defined(_LP64) && defined(COMPILER1) |
2729 UseCompressedOops = false; | 2725 UseCompressedOops = false; |
2730 #endif | 2726 #endif |