[#1491] bug — Mathieu Bouchard <matju@...>
6 messages
2003/09/01
[#1492] non-blocking mode behavior (Re: bug)
— nobu.nokada@...
2003/09/01
Hi,
[#1512] New tests — Dave Thomas <Dave@...>
I was looking through the new test/ruby/* stuff just now, and notices
6 messages
2003/09/05
[#1533] GC disable / enable question — Torsten Rueger <torsten.rueger@...>
Moi,
7 messages
2003/09/17
[#1534] Re: GC disable / enable question
— nobu.nokada@...
2003/09/17
Hi,
[#1541] How to debug ? — Torsten Rueger <torsten.rueger@...>
Moi,
6 messages
2003/09/19
[#1542] Re: How to debug ?
— ts <decoux@...>
2003/09/19
>>>>> "T" == Torsten Rueger <torsten.rueger@hiit.fi> writes:
[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>
I was just playing around with Hash#hash and discovered that you can't use a
13 messages
2003/09/23
[#1552] Re: Hashes as keys
— Jim Freeze <jim@...>
2003/09/23
On Wednesday, 24 September 2003 at 6:21:33 +0900, Nathaniel Talbott wrote:
[#1556] ostruct.rb patch — "Nathaniel Talbott" <nathaniel@...>
I've been finding OpenStruct to be very useful lately, and then I discovered
9 messages
2003/09/24
[#1557] Re: ostruct.rb patch
— "NAKAMURA, Hiroshi" <nahi@...>
2003/09/24
Hi, Nathaniel,
Re: GC disable / enable question
From:
Torsten Rueger <torsten.rueger@...>
Date:
2003-09-17 12:23:21 UTC
List:
ruby-core #1535
>> some code that constructs ruby objects. (I've tried without, and the >> GC >> sweeps my partly constucted objects away). > > Something wrong in your "partly constructing" way. Is there ? I'm reconstructing a possibly cyclic graph of objects from data. And I do it in C, by necessity. As far as I can see that will always leave me with objects that are not referenced from Ruby. > How are you doing it? It is in essence the same as in marshal.c . So there's memory, I check the "type" of it, construct a ruby object accordingly and especially for objects/arrays/hashes do so recursively. I have a place to store a flat list of all objects, so I don't load any twice, but I'd want to keep that in C if possible. I think the same problem would occur in marshal there if you just made a test for it. I mean if the gc hits marshal somewhere during marshal_load, in any of the rb_*_alloc functions, wouldn't it collect the objects ? Torsten