From: Stefan Scholl Date: 2003-01-29T23:25:58+09:00 Subject: Re: Embedding Ruby: Potential memory leaks? ts writes: > S> How can I be sure that the objects generated by rb_str_new() get > S> cleaned up? Are there any old references left when I call > S> rb_define_readonly_variable() more than once with the same variable, > S> but different data? > > ruby use a mark/sweep garbage collector VALUE foo = rb_str_new2("bar"); .... Some steps later ... How do I know that the mark/sweep garbage collector hasn't removed my new object?