Re: [Gc] adding profiling callbacks

Bruce Hoult <[email protected]> Tue, 1 Jul 2014 03:45:24 +1200
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <CAMU+EkwRhXPW6hPtdu6efgwsu5QS=gPH4HAE3L3ia5KPaxtx6w@mail.gmail.com>
On Tue, Jul 1, 2014 at 3:36 AM, Lucas Meijer <[email protected]> wrote:

> @Paul: GC_EVENT_RECLAIM_START gets sent when marking is finished, and
> sweeping starts.
>

There really isn't a discrete sweeping phase, as such.

When you call GC_malloc() (or friends) and the free list for that object
size is empty then one 4KB block is swept and the unmarked objects in it
added to the free list.

So the sweeping is spread somewhat evenly throughout the execution of your
program.

It would of course make sense to be able to instrument those individual
block sweepings. But it's a lot of small things spread out through each GC
cycle, not one big thing just after marking.

_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc