Announcement: micro-libgcj
Joel Dice
dicej@mailsnare.net
Fri Jan 6 17:35:00 GMT 2006
On Fri, 6 Jan 2006, Mike Emmel wrote:
> On 1/6/06, Joel Dice <dicej@mailsnare.net> wrote:
>> On Fri, 6 Jan 2006, Martin Egholm Nielsen wrote:
>>>>> This may be trivial, but if garbage collection is removed, how do one clean
>>> up?
>>>> One doesn't. :)
>>>> Many short-lived command-line programs don't need any memory management at
>> all - they complete before the garbage collector needs to collect
>> anything. For such programs, garbage collection is just bloat.
>>>> It would be trivial to add a System.free(Object) function, allowing
>> explicit memory management, if it was needed.
>>>> What about stack allocation i.e a snew or System.stackAlloc(Foo.class)
> I'd think that would be useful for these types of platforms.
That certainly would be useful. I assume it would require modifying the
compiler, though. Is that correct?
- Joel
More information about the Java
mailing list