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

TextInputControlSkin.caretTimeline is never stopped and causes memory leak

XMLWordPrintable

      The problem has been discovered during performance testing (see PERF-195)
      TextInputControlSkin.caretTimeline timeline is never stopped (even when the text field is removed) and so (since it is an inner class) it holds the skin which in turn holds the text of the
      text field and so we have both memory leak and (most likely) doing redundant work by updating caret for invisible text field.

      I'd suggest to stop/start the timeline when the component become invisible/visible.

        1. RT_16797.java
          2 kB
          Richard Bair
        2. Screen Shot 2012-02-29 at 4.40.36 PM.png
          54 kB
          Richard Bair
        3. RT-16797
          6 kB
          Richard Bair

            rbair Richard Bair (Inactive)
            son Oleg Sukhodolsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: