5 So thinking about garbage collection, since it will pretty much be stop the
6 world, I do wonder how I can optimize some of it. Well, basically it only has
7 to be run if allocation of memory fails.
11 Well, basically I will need some kind of GC barrier that threads can wait on
12 or just completely freeze potentially. Freezing might be the easiest although
13 it could cause some odd state that could occur potentially. Another thing is
14 that GC could sweep objects when safe points are reached in threads that
15 are still running. But safe points can be anywhere.
19 For the launcher, I will need a way to determine which interface to use. I
20 suppose what I can do is just have a class lookup which basically says that
21 if LCDUI classes exist then use those interfaces. If those do not exist, then
22 check for LUI. If there is no LUI support, then just run some kind of program
23 and such if one was specified on the command line for example.
27 So I suppose what the auto-interpreter needs is a kind of configuration system
28 of sorts, to determine which APIs, MIDlets, and LIBlets are available.