[Bug libgcj/16134] Memory leak in String.getBytes()
mckinlay at redhat dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 22 17:21:00 GMT 2004
------- Additional Comments From mckinlay at redhat dot com 2004-06-22 16:56 -------
There is certainly a problem with the encoder cache here in that cache lookups
will always fail. I've written the obvious patch and will check it in shortly.
However the leak you see is not due to this code directly because it never keeps
more than 4 encoder instances in the cache. Rather, it is due to the
stack-walking code leaking memory as part of the calling classloader check in
Class.forName(). This was fixed in gcc 3.4, see bug 12475.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16134
More information about the Java-prs
mailing list