This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: dynamic library cost (was RE: libtool, java woes)
- To: tromey at redhat dot com
- Subject: Re: dynamic library cost (was RE: libtool, java woes)
- From: Jonathan P. Olson <olson at mmsi dot com>
- Date: Fri, 13 Apr 2001 09:06:55 -0700
- Cc: dewar at gnat dot com,hans_boehm at hp dot com,gcc at gcc dot gnu dot org,java at gcc dot gnu dot org,jsturm at one-point dot com
I'll check out the paper. However it seems like the compacting collector
would need to suspend threads for long periods of time while it's
modifying
all the memory references since all references to an object would need to
be modified atomically. In a multi-threaded system it would be very
costly.
On Friday, April 13, 2001, at 09:09 AM, Tom Tromey wrote:
> They did this work so that they could implement a compacting collector
> but still have the compiler generate optimized code. So what they did
> is even more ambitious -- if an object is moved they update the stack
> and registers to reflect this.
>
> My guess is that it would be cheaper, easier, and probably not much
> worse to simply implement a mostly-copying-or-compacting collector.
> (I have no facts to back up this assertion.)
>
> Anyway, for them the question wasn't about the cost of scanning the
> stack per se. That cost is just part of a larger cost framework. For
> some reason they wanted to use a compacting collector and this is the
> work required to do that.
>
> Tom