[PATCH] avoid GC segfault/hang/etc: make gnulib's hash module use GC

Pete Zaitcev zaitcev at redhat.com
Mon Aug 1 23:00:04 UTC 2011


On Mon, 01 Aug 2011 20:35:39 +0200
Jim Meyering <jim at meyering.net> wrote:

> >> Re your own list code, please use what you put in that patch,
> >> at least for now.  Simpler is better, especially for a bug-fixing change.
> >
> > Yeah, maybe... Actually I'm thinking maybe just use <queue.h>. It existed
> > for a while.
> 
> The advantage of using your hand-rolled list code
> is that its memory allocation is already GC-enabled.
> If you use queue.h, then we'll have to hack queue.c like I did
> for hash.c, so that its malloc-like calls get mapped to their
> GC analogs.

Sorry, I meant /usr/include/sys/queue.h, which uses in-storage list elements.

-- Pete


More information about the iwhd-devel mailing list