Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7166894

Add gc cause to GC logging for all collectors

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b11
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        As part of 7163848 the gc cause was added to all PrintGC logging for G1. It was suggested to do the same for the other collectors.

        We do risk invalidating parsers with a change like this, but for the Full GC logging there was already "(System)" added to the logging when we did a System.gc(). So it seems lower risk to only add the gc cause to Full GC than to all GCs.
        Suggested release note:

        The log output when using -XX:+PrintGC will now list the GC cause in brackets if the flag -XX:+PrintGCCause is set. This flag is off by default in JDK7 and on by default in JDK8. Full GCs triggered by a call to System.gc() used to log "(System.gc)" or "(System)" when -XX:+PrintGC was on. Now this will only be included if -XX:+PrintGCCause is also on.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                brutisso Bengt Rutisson (Inactive)
                Reporter:
                brutisso Bengt Rutisson (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: