mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
7166894: Add gc cause to GC logging for all collectors
Reviewed-by: mgerdin, johnc
This commit is contained in:
parent
b2d4591455
commit
eba9965d54
16 changed files with 75 additions and 54 deletions
|
@ -3092,6 +3092,14 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
PrintGC = true;
|
||||
}
|
||||
|
||||
if (!JDK_Version::is_gte_jdk18x_version()) {
|
||||
// To avoid changing the log format for 7 updates this flag is only
|
||||
// true by default in JDK8 and above.
|
||||
if (FLAG_IS_DEFAULT(PrintGCCause)) {
|
||||
FLAG_SET_DEFAULT(PrintGCCause, false);
|
||||
}
|
||||
}
|
||||
|
||||
// Set object alignment values.
|
||||
set_object_alignment();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue