From: Hugh Sasse <hgs@dmu.ac.uk>
To: ruby-core@ruby-lang.org
Subject: Re: gc.c -- possible logic error?
Date: Wed, 3 Oct 2007 01:39:35 +0900 [thread overview]
Message-ID: <Pine.GSO.4.64.0710021732080.3516@brains.eng.cse.dmu.ac.uk> (raw)
In-Reply-To: <470271C3.6060906@path.berkeley.edu>
On Wed, 3 Oct 2007, Joel VanderWerf wrote:
> Hugh Sasse wrote:
> ...
> > So a whole load of components of data get marked by the GC, but don't
> > get freed in the free function, because only the frame component
[...]
>
> Mark and free are not symmetric. Mark is for objects referred to by self
> (which might also be referenced elsewhere); free is for internal data that
> can't be directly referenced by other ruby objects. For example, an array's
> mark func must mark the objects that are elements of the array (and any
> instance vars of the array). The free func releases the storage of the array
> itself (the C array of VALUEs), but can't touch the objects because someone
> else might still be referring to them.
Thanks, that confirms the results of my experiment which failed, and ties
the low level aspects into the high level mental model I had.
With the tools I have here, I am now at a loss to explore this
non-freeing of objects further. I could do basic experiments with
1.9 if I could find it :-) but I've not found the svn/tarball of it
from wandering round ruby-lang.org
Thank you,
Hugh
next prev parent reply other threads:[~2007-10-02 17:44 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-28 12:57 gc.c -- possible logic error? Hugh Sasse
2007-09-28 16:04 ` Yukihiro Matsumoto
2007-09-28 17:46 ` Hugh Sasse
2007-09-28 18:54 ` Hugh Sasse
2007-09-28 17:36 ` MenTaLguY
2007-09-28 17:58 ` Hugh Sasse
2007-09-28 18:49 ` MenTaLguY
2007-09-28 18:56 ` Hugh Sasse
2007-09-28 19:23 ` MenTaLguY
2007-09-28 20:54 ` Joel VanderWerf
2007-09-29 6:09 ` Yukihiro Matsumoto
2007-09-30 4:31 ` Tanaka Akira
2007-09-30 4:35 ` Tanaka Akira
2007-10-01 13:48 ` Sylvain Joyeux
2007-10-01 15:56 ` Hugh Sasse
2007-10-01 16:51 ` Tanaka Akira
2007-10-01 17:09 ` Hugh Sasse
2007-10-01 17:29 ` Tanaka Akira
2007-10-01 17:54 ` Hugh Sasse
2007-10-01 19:43 ` Berger, Daniel
2007-10-02 10:47 ` Hugh Sasse
2007-10-01 20:32 ` Eric Hodel
2007-10-02 11:16 ` Hugh Sasse
2007-10-02 18:47 ` Eric Hodel
2007-10-02 19:50 ` Hugh Sasse
2007-10-03 12:27 ` Hugh Sasse
2007-10-03 13:54 ` Hugh Sasse
2007-10-03 15:56 ` Eric Hodel
2007-10-01 17:34 ` Sylvain Joyeux
2007-10-01 18:08 ` Hugh Sasse
2007-10-02 7:36 ` Sylvain Joyeux
2007-10-02 9:26 ` Hugh Sasse
2007-10-02 13:58 ` Hugh Sasse
2007-10-02 16:29 ` Joel VanderWerf
2007-10-02 16:39 ` Hugh Sasse [this message]
2007-10-03 7:33 ` [SUMMARY] " Sylvain Joyeux
-- strict thread matches above, loose matches on Subject: below --
2007-10-01 18:19 Brent Roman
2007-10-01 18:39 ` Hugh Sasse
2007-10-02 7:20 ` Sylvain Joyeux
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-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.64.0710021732080.3516@brains.eng.cse.dmu.ac.uk \
--to=ruby-core@ruby-lang.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).