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

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

XMLWordPrintable

    • 2d
    • b01
    • x86
    • windows_xp

      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();
              }
          }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: