code review request: Test case for JDK-7042126 HashMap.clone() memory leak

David Buck david.buck at
Tue Jan 29 23:36:10 UTC 2013


This is a review request to add only the test case for the following 
OracleJDK issue :

[ 7042126 : (alt-rt) HashMap.clone implementation should be re-examined ]

* please note: I just marked the bug as "public" this morning, so there 
will be a short delay before the above link is available.

The issue (root cause) is not in OpenJDK (i.e. the problem was OracleJDK 
specific), but the test case is valid for any Java SE implementation so 
it should go into OpenJDK so we can prevent a similar issue from ever 
happening in both releases moving forward. The test case simply helps 
ensure that the contents of a HashMap are not leaked when we clone the 

[ Code Review for jdk ]

The OracleJDK fix (closed source) for the original issue has already 
passed code review and has been pushed into the appropriate closed 
source tree.


More information about the core-libs-dev mailing list