This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: RFC: String sharing heuristic
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: tromey at redhat dot com
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: Wed, 25 May 2005 11:03:47 -0400
- Subject: Re: Patch: RFC: String sharing heuristic
- References: <m3r7gd79to.fsf@localhost.localdomain>
Tom Tromey wrote:
Please comment on this.
Christopher Lansdown showed me an example program that unexpectedly
used a lot of memory (as compared to running on jamvm). Analysis
showed that he was using substring(), which was keeping the entire
contents of his 300M log file live -- whereas the heuristic in
Classpath's substring() avoided this.
I filed a PR on this so we don't forget it:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21753
Bryce