This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/16134] Memory leak in String.getBytes()


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]