Re: [Jamvm-general] memory leak
Brought to you by:
rlougher
From: Mattias I. B. <mat...@co...> - 2013-11-21 08:49:47
|
Sorry I don’t remember much about it just searched my mailbox about it. Just remember a memory leak with Double.toString in GNU classpath. Did a Google search now. Might have been this one, not fixed in 0.97.2 and 0.98 at least and regarding this bug report the bug fix is still not applied. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29263 Mattias Från: mlp...@gm... [mailto:mlp...@gm...] Skickat: den 21 november 2013 08:04 Kopia: jam...@li... Ämne: Re: [Jamvm-general] memory leak Hello Mattias, thank you for your quick reply. I tried with classpath 0.99. But without success. I also checked the savannah cvs and the files you mentioned have not changed the last few years. Do you have any other ideas? Best regards Michael Gesendet: Mittwoch, 20. November 2013 um 15:06 Uhr Von: "Mattias Isegran Bergander" <mat...@co...<mailto:mat...@co...>> An: "mlp...@gm...<mailto:mlp...@gm...>" <mlp...@gm...<mailto:mlp...@gm...>>, "jam...@li...<mailto:jam...@li...>" <jam...@li...<mailto:jam...@li...>> Betreff: SV: [Jamvm-general] memory leak If memory serves there were two bugs in GNU classpath that might be related to this. Might have been fixed in 0.99. Maybe a good starting point to find out more though. One memory leak for doubles native/jni/java-lang/java_lang_VMDouble.c and some more files in native/fdlibm/ and one problem with java/text/DecimalFormat.java Mattias Från: mlp...@gm...<mailto:mlp...@gm...> [mailto:mlp...@gm...] Skickat: den 20 november 2013 14:52 Till: jam...@li...<mailto:jam...@li...> Ämne: [Jamvm-general] memory leak Hello list, I have the following Java Code which in my opinion causes a memory leak in jamvm. It could be programmed better, but in my case I want to run the eclipse equinox OSGi framework and sometimes the kernel kills jamvm because there is no memory left. I reduced the code until this sample remains: public class HelloWorld { public static void main(String[] args) { while(true) { Float f1,f2; Float fRes; String sRes; f1 = 23.4f; f2 = 2.5f; fRes = f1 * f2; sRes = Float.toString(fRes); } } } Running this code with a diffrent JRE or even with the ubuntu jamvm works fine. Only with my compiled jamvm version 1.6.0 and classpath 0.99 the memory usage is very high and the kernel keeps killing the jamvm process. Any suggestions what could be done? Best regards Michael |