[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
alloca and GC
From: |
Keisuke Nishida |
Subject: |
alloca and GC |
Date: |
Fri, 26 Jan 2001 14:59:14 -0500 |
User-agent: |
Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.95 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
Hello,
I am wondering if SCM objects stored in alloca'ed memories,
as shown below, are garbage-collected or not. A preliminary
test showed they aren't:
scm_bits_t *sp = alloca (100 * sizeof (scm_bits_t));
sp[0] = SCM_UNPACK (scm_cons (SCM_BOOL_F, SCM_BOOL_F));
/* sp[0] won't be collected until the end of this function */
Is this true? Is it safe to store other data than SCM objects
in the allocated memory? If so, it's convenient for VM stacks.
(BTW, how this works?)
Thanks,
Keisuke Nishida
- alloca and GC,
Keisuke Nishida <=
- Re: alloca and GC, Thomas Wawrzinek, 2001/01/29
- Re: alloca and GC, Keisuke Nishida, 2001/01/29
- 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