Announcement: micro-libgcj
Mike Emmel
mike.emmel@gmail.com
Fri Jan 6 15:41:00 GMT 2006
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.
Mike
> - Joel
>
>
More information about the Java
mailing list