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

Toolkit images create too many image buffers causing unnecessary garbage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • 2d
    • beta3
    • generic
    • generic

      The Toolkit images (those created by createImage(URL/filename/ImageProducer))
      create the image buffers to store the data from the Producer too aggressively
      and end up creating some buffers that are immediately replaced causing the
      old buffers to become unnecessary garbage.

      This causes a performance degradation on startup as extra GC cycles are
      executed to clean up the discarded image buffers.

      No loss of data occurs, the discarded buffers are empty and simply a waste
      of allocation/GC overhead.

            flar Jim Graham
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: