GC statistics (was Re: big project ported)

Jonathan P. Olson olson@mmsi.com
Wed Oct 27 17:42:00 GMT 1999


On Wed, 27 Oct 1999, Godmar Back wrote:

>Other things that make Boehm's gc slower is the fact that it's
>noncopying; therefore, its sweep phase complexity is proportional
>to the amount of garbage found.  In other words, it has to spend
>time returned every garbaged object to the allocator one by one.
>
>	- Godmar
>-

In an embedded conservative collector, I do the sweep phase by merely
anding bits in allocation maps.  There's no work to do for each object
being freed, and each word written to the allocation maps can free
up to 32 objects.  In this collector, the mark phase dominates the
collection time, and the sweep phase is always constant.

--
Jon Olson, Modular Mining Systems
	   3289 E. Hemisphere Loop
	   Tucson, AZ 85706
olson@mmsi.com
Phone:	(520)746-9127
Fax:	(520)889-5790


More information about the Java mailing list