Hi, As I understand the classes of a midlet suite are loaded by the kvm dynamically when needed, not all in one go at startup. Are they ever unloaded before the application exits? Does this free up heap space? Is the garbage collector responsible for freeing up memory taken up by classes? Thanks Nick
You need to manually dispose network connections, RMS stores and RMS enumerators etc -- just as what you do in J2SE. Everything else is taken care of by the GC. You can reduce the GC usage by reusing existing objects (Forms and StringBuffers) as much as possible.
What about the inter workings of the vm. At what point is a class's bytecodes loaded into memory from persistent storage (the first time the class loader find a reference to it from another class?) and when is it unloaded? And is the memory required for the bytecodes allocated from the heap shared with object data?
Do you pee on your compost? Does this tiny ad?
Thread Boost - a very different sort of advertising