Re: [Jamvm-general] memory leak
Brought to you by:
rlougher
From: Mattias I. B. <mat...@co...> - 2013-11-20 14:20:02
|
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...] Skickat: den 20 november 2013 14:52 Till: 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 |