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

BaseResourceFactory uses static caches, which can cause a leak

    Details

      Description

      The fix for "RT-32998: Printing with JPG Image as fill for Text prints an empty page"
      uncovered that BaseResourceFactory has two static WeakHashMaps used as texture caches.
      These caches held a texture that was created for the on-screen pipeline.
      The fix for RT-32998 replicated this, but maybe these static (on the class) caches.
      Most likely what should happen is the caches should be non-static and 'protected' so
      that a BaseResourceFactory would get its own. PrintResourceFactory would then not need its statics.

        Attachments

          Activity

            People

            • Assignee:
              flar Jim Graham
              Reporter:
              prr Philip Race
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: