[1367] in java-interest
Re: java-interest-digest V1 #137
daemon@ATHENA.MIT.EDU (Thomas Breuel)
Thu Aug 31 04:39:52 1995
Date: Wed, 30 Aug 1995 22:43:01 -0700
From: <tmb@almaden.ibm.com> (Thomas Breuel)
To: java-interest@java.sun.com
In-Reply-To: <199508290630.XAA24818@webrunner.neato.org>
Reply-To: <tmb@almaden.ibm.com>
owner-java-interest-digest@java.sun.com writes:
> From: Philip R Brenan <phil@bga.com>
> Date: Mon, 28 Aug 1995 15:48:16 -0500 (CDT)
> Subject: Garbage collection
>
> Several people wrote me to point out that Java uses a mark and sweep
> method to locate all unreferenced objects. Surely this is very
> inefficient - as it is order(number of objects) in time? Suppose I had
> 10**7 objects - not inconceivable? Am I missing something here?
Sun's implementation of Java may (or may not) use a simple
mark-and-sweep collector. There is nothing in the language that would
make this mandatory. Generational, copying, and other kinds of
collectors are certainly possible.
Thomas.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com