[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: alloca and GC
From: |
Keisuke Nishida |
Subject: |
Re: alloca and GC |
Date: |
Mon, 29 Jan 2001 14:23:51 -0500 |
User-agent: |
Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.96 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Mon, 29 Jan 2001 10:47:57 +0100 (MET),
Thomas Wawrzinek wrote:
>
> > But to get back to your original question: since the malloc-based
> > alloca returns blocks allocated from the heap, which Guile's GC won't
> > scan, your example above won't work with the malloc-based alloca.
> > Since you can't tell which alloca you're using, I'd recommend against
> > it.
>
> Right! I once found that an alloca() implementation wasn't threadsafe (this
> was an old GNU implementation under Windoze, but probably not the one
> supported in gcc).
>
> Considering the diverse dependencies (compiler, OS), and the resulting
> differences in behavior, not to use alloca() seems to be the right thing to
> me, too.
I see. I have noticed that alloca is not a standard function
and decided not to use it. Thanks again.
(BTW, I'm reworking on my VM these days. Hopefully, it will
come soon (target: in a month) with many improvements.)
Kei
- alloca and GC, Keisuke Nishida, 2001/01/26
- Re: alloca and GC, Thomas Wawrzinek, 2001/01/29
- Re: alloca and GC,
Keisuke Nishida <=
- Re: alloca and GC, Colin Walters, 2001/01/29
- Re: alloca and GC, Keisuke Nishida, 2001/01/30
- Re: alloca and GC, Martin Grabmueller, 2001/01/30
- Re: alloca and GC, Colin Walters, 2001/01/30
- Re: alloca and GC, Michael Livshin, 2001/01/30
- Re: alloca and GC, Dirk Herrmann, 2001/01/30
- Re: alloca and GC, Martin Grabmueller, 2001/01/29
- Re: alloca and GC, Keisuke Nishida, 2001/01/29