From: Garrett Rooney Date: 2005-03-11T02:51:15+09:00 Subject: Re: rb_raise and memory George Ogata wrote: > Yukihiro Matsumoto writes: > > >>Hi, >> >>In message "Re: rb_raise and memory" >> on Thu, 10 Mar 2005 08:25:49 +0900, Nikolai Weibull writes: >> >>|No problem. Is there a simple workaround (other than explicitly >>|calling free before rb_raise), such as registering the address with the >>|GC? One would have to wrap it in a VALUE it seems, which isn't >>|great... >> >>There's no way for Ruby GC to handle non-VALUE data. The only >>solution I can think of is moving to Boehm GC, which might be an >>overkill. >> >> matz. > > > Won't ALLOCA_N work for this, or am I not following? alloca memory is deallocated at the end of the scope, which is not a good thing if you expect to use it later... -garrett