[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using SCM_SMOB_PREDICATE during GC
From: |
Michael Livshin |
Subject: |
Re: using SCM_SMOB_PREDICATE during GC |
Date: |
14 May 2001 15:08:55 +0300 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Copyleft) |
"Lars J. Aas" <address@hidden> writes:
> I wrote something like this (guile 1.4) recently:
>
> static SCM
> my_smob_mark( SCM smob )
> {
> SCM_ASSERT( SCM_SMOB_PREDICATE(smob_type, smob),
> smob, SCM_ARG1, "internal smob mark" );
> ...
> }
>
> I know it's unnecessary, but I wrote it just for the hell of it :)
> Anyways, it always triggered the assert, so I'm led to believe that
> there's a bit that's set during the mark sweep that is included when
> extracting the smob-type from the smob (haven't investigated this).
that's right (it's the mark bit).
> If that is the case, it should probably be masked out.
the CVS Guile doesn't have this problem (so 1.6.0 won't have it
either).
--
What is this talk of 'release'? Klingons do not make software
'releases.' Our software 'escapes' leaving a bloody trail of designers
and Quality Assurance people in its wake.
-- Klingon Programmer