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

Possible memory leak due to use of static WeakHashMap in the TableCellBehavior

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 7u15
    • 8
    • javafx
    • None
    • Windows 7 x64

    Description

      Hello,

      I think that the following problem is a bug, if this is not the case, my apologizes.

      The class 'com.sun.javafx.scene.control.behavior.TableCellBehavior' contains a static WeakHashMap with the following entry definition:

      Key: TableView
      Value: TablePosition

      The problem comes from the fact that the TablePosition contains also strong references to the TableView and TableColumn.

      Thus the GC can never do its work because it exists always at least a strong reference to the TableView, even if the TableView is not used somewhere else.

      Best regards, Gilles Remy

      Attachments

        Activity

          People

            jgiles Jonathan Giles
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: