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

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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved:
              Imported: