mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
6637203: Classunloading messages go to stdout rather than Xloggc file, causing hangs when stdout is closed
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
This commit is contained in:
parent
1335d16d6e
commit
642d1bc555
3 changed files with 1 additions and 6 deletions
|
@ -1866,7 +1866,6 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args,
|
|||
FLAG_SET_CMDLINE(bool, TraceClassUnloading, true);
|
||||
} else if (!strcmp(tail, ":gc")) {
|
||||
FLAG_SET_CMDLINE(bool, PrintGC, true);
|
||||
FLAG_SET_CMDLINE(bool, TraceClassUnloading, true);
|
||||
} else if (!strcmp(tail, ":jni")) {
|
||||
FLAG_SET_CMDLINE(bool, PrintJNIResolving, true);
|
||||
}
|
||||
|
@ -2720,9 +2719,6 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
if (PrintGCDetails) {
|
||||
// Turn on -verbose:gc options as well
|
||||
PrintGC = true;
|
||||
if (FLAG_IS_DEFAULT(TraceClassUnloading)) {
|
||||
TraceClassUnloading = true;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(_LP64) && defined(COMPILER1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue