Java memory leak

2005-06-28 22:26:15 PST

Tags:

Today I saw java code with a memory leak. Really quite special.

To be fair, the setting was inside a lego mindstorm robot, and apparently the java VM for it didn't have a garbage collector, so everything and to have a host of keywords before its declaration in the code, like static and final etc. Some where along the way my friend must have missed something, because after a certain amount of runtime his bot always crashed complaining of running out of memory.

Pretty special.

The question really has to be brought up, in this situation what possible merit does java have? No it doesn't even have its memory garbage collection advantage, in fact you now have to kludgedly manage java memory so it's suddenly a hugh con. Apparently there are C compilers for mindstorm so why would you ever use java? Especially when cosidering you have 32K of memory and the bytecode will be biger than a native exe and you also have to load on a mini java VM as well.

Leave a Reply

Valid XHTML 1.0!
Valid CSS!
Mindstab.net is proudly powered by WordPress
Entries (RSS) and Comments (RSS).
20 queries. 0.354 seconds.