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

TextInputControlSkin.caretTimeline is never stopped and causes memory leak

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: