Results for “java array string 1 code example site:bugs.java.com python”
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
bugs.java.com
JDK-6223076 : Unnecessary object retention in java.util.zip ...
The Deflater code saves a reference to the given byte array in a private field, and this private field is never cleared. Since the Deflater class has a finalization method it can take quite a while for a Deflater instance to be garbage collected, and in the meantime the potentially-large byte array will be kept alive for no reason.