JDK-4168395 : Component.setFont() leaks memory.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-08-21
  • Updated: 2022-10-21
  • Resolved: 1998-08-24
Related Reports
Duplicate :  
Description
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

Comments
PUBLIC COMMENTS Duplicate of 4068618.
10-06-2004