|
|
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Right. I suspect either they don't get GCed if you wind up with a
>> reference to $B inside $B, or there's a mark/sweep mechanism that kicks
>> in. Given my experiences, I'd expect it just leaks. :-)
>
> http://www.derickrethans.nl/circular_references.php
>
> It seems they are working on something called "cyclic tracing" to
> alleviate the problem, whatever that may mean.
Yeah, I found that.
The naive attempt to make it blow up didn't work, using arrays, so
obviously they're doing something a mite more sophisticated than raw
reference counting. I suspect the fact that there *is* a symbol table
(i.e., that there's really only one pointer to the data structure, and
potentially many pointers to the pointer to the data structure) comes
into it somewhere.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|