[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: after-gc-hook recently broken for bdwgc 7.2alpha CVS

From: Andy Wingo
Subject: Re: after-gc-hook recently broken for bdwgc 7.2alpha CVS
Date: Tue, 12 Apr 2011 00:52:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Sat 09 Apr 2011 07:05, Mark H Weaver <address@hidden> writes:

> Sometime between 2.0.0 and current stable-2.0, after-gc-hook has been
> broken on my system: "FAIL: gc.test: gc: after-gc-hook gets called".
> Both 2.0.0 and current stable-2.0 are built and linked with bdwgc
> 7.2alpha from CVS, circa 2011-03-27.  This on gNewSense metad/mipsel
> (slightly modified Debian Lenny).
> Any ideas?

In 1.8, this hook was called after GC.  In 2.0, it was only called on
explicit (gc), because the boehm GC doesn't have hooks like this.  But
then in ec7f624d652eaf6e4cf06253101b4a986e1b9e8e I figured out an evil
way to get a hook: simply malloc an object, and resuscitate it in its
finalizer.  The finalizer can then schedule the hook.  If your hook is
not running though, that would indicate a problem.

So, no direct ideas, but good luck :-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]