-
Bug
-
Resolution: Fixed
-
P1
-
1.0_fcs, 1.1.3, 1.1.4, 1.1.5
-
1.1.6
-
generic, sparc
-
solaris_2.5.1, solaris_2.6
-
Verified
This problem occurs with the X11/Motif version of the Java Virtual Machine.
The JVM process size grows each time Graphics.drawImage() is used to scale a given offscreen image.
To reproduce the problem, compile the attached Stretch.java class and run it as a Java application ('java Stretch'). Resize and/or maximize the window while monitoring the java process size. The problem is very obvious when restoring the window after maximizing it: the process grows by approx. 1 megabyte!
Please note that all Image and Graphics instances are disposed of when not used anymore.
The JVM process size grows each time Graphics.drawImage() is used to scale a given offscreen image.
To reproduce the problem, compile the attached Stretch.java class and run it as a Java application ('java Stretch'). Resize and/or maximize the window while monitoring the java process size. The problem is very obvious when restoring the window after maximizing it: the process grows by approx. 1 megabyte!
Please note that all Image and Graphics instances are disposed of when not used anymore.
- duplicates
-
JDK-4078265 Memory leak in X11 AWT drawImage()
- Closed
-
JDK-4106786 drawImage Memory Leak
- Closed