(keitai-l) Garbage Collection with i-applo

From: Zev Blut <zev_at_atc.yamatake.co.jp>
Date: 04/25/01
Message-ID: <001101c0cd45$d80249c0$da1414ac@taishakurhq>
Hello,

I am little late on the topic of garbage collecting with iApplis.  Instead
of excessive quoting a few threads deep
I will give my comments below.

I do believe that the iAppli phones have KVMs with garbage collection.
I would really like to see the documents that state this is not the case.
If you go to page 41 of the I-mode java development guide pdf, provided by
NTT DoCoMo,
you will see a list of memory issues to watch out for.  Garbage collection
is mentioned as
function that is performed.

If you look at the KVM docs and source there is a simple "mark and sweep"
garbage
collector implemented, plus they have plans on improving this in the future.
Since it is likely that each
vendor needs to port the KVM for their phone and OS, each KVM is probably
slightly different.  Although,
the CLDC sdk coms with the source code for a KVM to assist in porting to
many platforms.   So I am pretty sure
they use or draw heavily from this KVM.  Of course, I can be wrong and I do
not have any information as to
what is really done for each phone.

Also, in a later release on the thread there is a mention of disposing
objects with the DoJa API.

Even in the full Java package there are classes that you need to call
dispose() on too.  For example the java.awt.Window
class has this method.  The reason is these classes hold onto native
resources and it is best to clean them up
yourself when you no longer need them.   I would lean towards the thinking
that this is the case for the classes that allow you to call dispose() for
the DoJa API too.  Most of them are media resource classes that take a large
amount of memory and it is good practice to get rid of them as soon as you
do not need them.  I would not attribute this to not having a garbage
collector.


I hope this helps,

Zev



[ Did you check the archives?   http://www.appelsiini.net/keitai-l/ ]
Received on Wed Apr 25 07:53:37 2001