-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
05
-
x86
-
windows_2000
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2047475 | 1.4.2 | Alex Sultanov | P4 | Resolved | Fixed | mantis |
JDK-2047474 | 1.4.1_02 | Alex Sultanov | P4 | Resolved | Fixed | 02 |
JDK-2047473 | 1.4.0_03 | Alex Sultanov | P4 | Resolved | Fixed | 03 |
Name: nt126004 Date: 09/25/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
This bug occurs in HotSpot and Classic modes. It also appears in at least the
following versions:
Steps to reproduce:
1. Create a java.awt.FileDialog.
2. Show it.
3. Close it.
4. Garbage collect many times.
The FileDialog is never garbage collected. It is being held by two JNI
references. When these steps are repeated, additional FileDialog objects are
leaked.
The memory leak of the FileDialog object itself is not too severe, however it
holds a reference to its parent Frame which is probably using much more memory.
This leak was causing our application to leak several megabytes of heap per
occurrence.
I can provide you with a simple NetBeans project that demonstrates this leak
and an OptimizeIt snapshot that shows the JNI references that are preventing
garbage collection of the FileDialog objects and their parents.
(Review ID: 132073)
======================================================================
- backported by
-
JDK-2047473 Memory leak caused by java.awt.FileDialog
- Resolved
-
JDK-2047474 Memory leak caused by java.awt.FileDialog
- Resolved
-
JDK-2047475 Memory leak caused by java.awt.FileDialog
- Resolved
- duplicates
-
JDK-4682912 Out of Memory occurrs because FileDialogs are not GCed
- Closed
- relates to
-
JDK-4495338 Dialogs are never garbage collected
- Closed
-
JDK-6468858 REGRESSION: Memory leak caused by java.awt.FileDialog
- Closed
-
JDK-6282030 Regression: CTE_REGTEST/Generic/4506928/Application.java fails
- Closed
-
JDK-2132917 Regression: 4506928 testcase is passing with 142_10-b03 but failing with 142_11-b01
- Resolved