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

Add JFR event indicating explicit System.gc() call

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b26

      Description

      Create an event explicitly for System.gc, always enabled and with stacktrace enabled.

      The reason is that when one or more of the gazillions of frameworks you depend on have decided to attempt to force a full gc every once in a while (without having knowledge about everything else that is in use), this would be an easy way to find the location.

      The stacktrace should be the one from the caller of the system.gc call.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              egahlin Erik Gahlin
              Reporter:
              hirt Marcus Hirt
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: