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

Potential memory leak in JFR event class transformer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 20
    • 19, 20
    • hotspot
    • None
    • jfr
    • 19

      JDK-8297911 noticed a memory leak that was introduced with JDK-8282420, an oversight when retransforms stopped using the JVMTI env callbacks, to instead be unified in JFR_ON_KLASS_CREATION.

      There is another potential memory leak that could trigger in the exisitng code, in that the original class bytes could be saved already for initial class loads, if an agent modified the bytes. The code only takes into account if an agent transformed bytes on retransform, not on initial load. The same logic applies, and so it can be better unified. Also makes sense to remove some remnants in the jfrJvmtiAgent that became obsolete with JDK-8282420.

            mgronlun Markus Grönlund
            mgronlun Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: