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

Memory leak with JFR event handlers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • tbd
    • 9
    • hotspot
    • None
    • jfr

      When a user creates a Java event, JFR dynamically generates an event handler class that is used to write down field data efficiently. Today the class is generated in the primoridial class loader, so it is visible from the classloader the event is.

      This works, but it creates a small memory leak for every added event class in the boot class loader, since it's not possible to unload the handler class, when the event class is unloaded.

      It's a tricky problem to solve, and it may be we need to ship with a small memory leak. The number of event classes is typcially low, at most a couple of hundred, so the leak will be limited.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: