From: John Lam Date: 2006-06-02T07:43:28+09:00 Subject: Re: How can I pin a Ruby object in memory? ------=_Part_8352_6729143.1149201767816 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/1/06, Lyle Johnson wrote: > > > If you're asking whether Ruby will move the address of the Data object > itself: I'm guessing that that's possible. > > I was wondering about the latter. I couldn't find any APIs for pinning objects in memory so I was worried that the object might move out from underneath me. But on second thought I'd have the DATA pointer cached in a register / call stack in any event so it probably doesn't matter if the object moves in the future. Cheers, -John http://www.iunknown.com ------=_Part_8352_6729143.1149201767816--