-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b105
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2196261 | OpenJDK6 | Daniel Daugherty | P4 | Resolved | Fixed | b21 |
The following following bug:
6942989 2/2 Memory leak of java.lang.ref.WeakReference objects
was used to add the following tests:
java/util/logging/AnonLoggerWeakRefLeak.sh
java/util/logging/LoggerWeakRefLeak.sh
These tests use 'jmap -histo:live' to sample instance counts to
determine if the memory leak is present or not. The tests were
originally written with a fall back to 'jmap -histo' if the bits
being tested didn't support 'jmap -histo:live'. It turns out that
'jmap -histo' isn't reliable for returning proper instance counts
because it does not require a GC to be done. So while 'jmap -histo'
can show decreased counts in bits that have the memory leak fixed,
it can also make it look like the leak is still present.
The two tests need to be modified to abort if the 'jmap -histo:live'
option isn't available. Just to make life difficult, when using
OpenJDK6 bits on Windows, jmap will report a usage message that
says that the '-histo:live' option isn't available when it is.
That issue will be tracked with a different bug.
6942989 2/2 Memory leak of java.lang.ref.WeakReference objects
was used to add the following tests:
java/util/logging/AnonLoggerWeakRefLeak.sh
java/util/logging/LoggerWeakRefLeak.sh
These tests use 'jmap -histo:live' to sample instance counts to
determine if the memory leak is present or not. The tests were
originally written with a fall back to 'jmap -histo' if the bits
being tested didn't support 'jmap -histo:live'. It turns out that
'jmap -histo' isn't reliable for returning proper instance counts
because it does not require a GC to be done. So while 'jmap -histo'
can show decreased counts in bits that have the memory leak fixed,
it can also make it look like the leak is still present.
The two tests need to be modified to abort if the 'jmap -histo:live'
option isn't available. Just to make life difficult, when using
OpenJDK6 bits on Windows, jmap will report a usage message that
says that the '-histo:live' option isn't available when it is.
That issue will be tracked with a different bug.
- backported by
-
JDK-2196261 jmap '-histo:live' option is necessary for proper leak detection
- Resolved
- relates to
-
JDK-6942989 Memory leak of java.lang.ref.WeakReference objects
- Closed
-
JDK-6971851 jmap prints an incorrect usage message when SA is not present
- Closed
-
JDK-6964018 AnonLoggerWeakRefLeak and LoggerWeakRefLeak can fail in JPRT
- Closed