From: Han-Wen Nienhuys <hanwen@xs4all.nl>
To: guile-devel@gnu.org
Subject: Re: the new gc asserts in master
Date: Tue, 26 Aug 2008 23:41:11 -0300 [thread overview]
Message-ID: <g92eui$d4e$1@ger.gmane.org> (raw)
In-Reply-To: <g92d87$811$1@ger.gmane.org>
Han-Wen Nienhuys escreveu:
>> even the lazy smob case I wrote about here:
>>
>> http://thread.gmane.org/gmane.lisp.guile.user/6372
>
> I would classify the use of mark bits outside of the mark phase as outside
> of the defined API. If you want to have weak pointer semantics, use
> a weak hashtable, or implement reference counting on the C side.
>
> I am actuallly inclined to add add abort() for anyone who calls scm_gc_mark()
> outside the marking phase.
Also, you're creating a race condition: the mark bits are not protected by a lock,
so you will be screwed in still more interesting ways if more threads or types
would start doing this.
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
next prev parent reply other threads:[~2008-08-27 2:41 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 20:12 the new gc asserts in master Andy Wingo
2008-08-27 2:12 ` Han-Wen Nienhuys
2008-08-27 2:41 ` Han-Wen Nienhuys [this message]
2008-08-27 7:43 ` Ludovic Courtès
2008-08-27 14:00 ` Han-Wen Nienhuys
2008-08-27 15:38 ` Ludovic Courtès
2008-08-28 4:08 ` Han-Wen Nienhuys
2008-08-28 4:14 ` Han-Wen Nienhuys
2008-08-28 7:15 ` Ludovic Courtès
2008-09-03 4:39 ` Han-Wen Nienhuys
2008-09-03 8:12 ` Ludovic Courtès
2008-09-03 13:39 ` Han-Wen Nienhuys
2008-09-03 14:49 ` Ludovic Courtès
2008-09-04 2:17 ` Han-Wen Nienhuys
2008-08-27 19:00 ` Andy Wingo
2008-08-27 20:22 ` Andy Wingo
2008-08-28 4:33 ` Han-Wen Nienhuys
2008-08-28 14:17 ` Ludovic Courtès
2008-08-28 4:04 ` Han-Wen Nienhuys
2008-08-28 13:20 ` Han-Wen Nienhuys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='g92eui$d4e$1@ger.gmane.org' \
--to=hanwen@xs4all.nl \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).