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

Component.setFont() leaks memory.

XMLWordPrintable

    • generic
    • generic

      Calling Component.setFont() leaks memory. The simple test case attached, which calls this method on one component about three times a second, demonstates this behavior. This testcase running for 22 hours increased the VM's process space to 519Megs (Solaris 2.5.1) before the VM eventually ran out of memory and dumped core. The following is the msg it spit out before it died--core file was not complete due to lack of disk space.

      java.lang.NullPointerException
      at java.awt.Component.setFont(Component.java:634)
      at AutoThread.run(FontTest.java:159)
      SIGBUS 10* bus error
          si_signo [10]: SIGBUS 10* bus error
          si_errno [12]: Not enough space
          si_code [3]: BUS_OBJERR [addr: 0xeecc2000]

      stackbase=EECE2000, stackpointer=EECE01D0

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: