JDK-6474128 : REGRESSION: Frame Memory Leak
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2006-09-22
  • Updated: 2014-02-27
  • Resolved: 2006-11-13
Related Reports
Duplicate :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_07|08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]

A DESCRIPTION OF THE PROBLEM :
Memory leak of java.awt.Frame occurs again on 1.5.0_08, fixed under 1.5.0_07 (whether icon is set or not).

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the "XtoolkitIconLeak" test (s. 6317336 and several others) on 1.5.0_07 and 1.5.0_08.

ACTUAL -
> java -ea -version:1.5.0_07 -cp D:/java/obj com.afs.test.reference.XtoolkitIconLeak NOICON
awt.toolkit=sun.awt.windows.WToolkit
Not installing icons on frame via Frame.setIconImage()
HEAP USED =    256688, ACTIVITY = new Frame()
HEAP USED =   5261976, ACTIVITY = Frame.dispose()
HEAP USED =   5261776, ACTIVITY = new Frame()
HEAP USED =   5267384, ACTIVITY = Frame.dispose()
HEAP USED =   5267040, ACTIVITY = new Frame()
HEAP USED =   5269704, ACTIVITY = Frame.dispose()
HEAP USED =   5269440, ACTIVITY = new Frame()
HEAP USED =   5269384, ACTIVITY = Frame.dispose()
HEAP USED =   5269240, ACTIVITY = new Frame()
HEAP USED =   5269544, ACTIVITY = Frame.dispose()
HEAP USED =   5269200, ACTIVITY = new Frame()
HEAP USED =   5285680, ACTIVITY = Frame.dispose()
HEAP USED =   5285408, ACTIVITY = new Frame()
HEAP USED =   5282800, ACTIVITY = Frame.dispose()
HEAP USED =   5270048, ACTIVITY = new Frame()
HEAP USED =   5282208, ACTIVITY = Frame.dispose()
HEAP USED =   5269728, ACTIVITY = new Frame()
HEAP USED =   5282640, ACTIVITY = Frame.dispose()
HEAP USED =   5269024, ACTIVITY = Frame.dispose()

> java -ea -version:1.5.0_08 -cp D:/java/obj com.afs.test.reference.XtoolkitIconLeak NOICON
awt.toolkit=sun.awt.windows.WToolkit
Not installing icons on frame via Frame.setIconImage()
HEAP USED =    598744, ACTIVITY = new Frame()
HEAP USED =   5604648, ACTIVITY = Frame.dispose()
HEAP USED =   5604640, ACTIVITY = new Frame()
HEAP USED =  10610776, ACTIVITY = Frame.dispose()
HEAP USED =  10610568, ACTIVITY = new Frame()
HEAP USED =  15619888, ACTIVITY = Frame.dispose()
HEAP USED =  15619688, ACTIVITY = new Frame()
HEAP USED =  20625696, ACTIVITY = Frame.dispose()
HEAP USED =  20625488, ACTIVITY = new Frame()
HEAP USED =  25632648, ACTIVITY = Frame.dispose()
HEAP USED =  25663440, ACTIVITY = new Frame()
HEAP USED =  30639600, ACTIVITY = Frame.dispose()
HEAP USED =  30639240, ACTIVITY = new Frame()
HEAP USED =  35645728, ACTIVITY = Frame.dispose()
HEAP USED =  35645528, ACTIVITY = new Frame()
HEAP USED =  40647504, ACTIVITY = Frame.dispose()
HEAP USED =  40647496, ACTIVITY = new Frame()
HEAP USED =  45648416, ACTIVITY = Frame.dispose()
HEAP USED =  45647472, ACTIVITY = Frame.dispose()


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Go back to 1.5.0_07.

Release Regression From : 5.0u7
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
EVALUATION This leak is the same as reported in 6351698. The fix for 6351698 is available in 1.5.0_10.
13-11-2006