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

additional fix for 6255588 - "JDK windows printing implementation leaks GDI objects"

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b01
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      From original CR:

      The JDK's windows printing implementation is leaking GDI objects : 2 per job
      seems typical but it's not a "per-job" leak.
      Its observable in a process which creates and in some minimal way uses
      one or more PrinterJobs as both a growth in native process size (not Java heap)
      and in the windows task manager as a leak in GDI Objects (select the column
      to view this).

      A program as simple as this can demonstrate the problem:

      import java.awt.print.*;

      public class PT {

          public static void main(String[] args) {
              PrinterJob printerJob = PrinterJob.getPrinterJob();
              for (int i=0;i<10000;i++) {
                  printerJob.defaultPage();
              }
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmoscovisunw Tal Moscovitz (Inactive)
                Reporter:
                tmoscovisunw Tal Moscovitz (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: