Some Java mobile devices have distinct heaps for MIDP and VM. What’s the distinction between these two heaps, and how can a J2ME app control which is used for a given piece of data?
Some Java mobile devices have distinct heaps for MIDP and VM. What’s the distinction
Share
You can’t control which one is used by your MIDlet, it’s decided by the implementation of the KVM (and thus by the producer). Usually, when the device has two separate heaps it uses one to keep ‘common’ data and the other to keep media like pictures or video clips, but again, it’s up to the producer, you can’t force an object to be allocated on a heap instead of another via J2ME