[squeak-dev] Re: shared object between main.exe and Squeak.dll

David T. Lewis lewis at mail.msen.com
Sat May 8 15:08:52 UTC 2010


On Sat, May 08, 2010 at 02:03:41PM +0300, Igor Stasenko wrote:
> On 8 May 2010 11:08, Ang BeePeng <beepeng86 at yahoo.com> wrote:
> 
> oopPtr = malloc(4);
> 
> *oopPtr = someOop;
> addGCRoot(oopPtr);
> 
> oop = *oopPtr;
> .. do something which may cause GC ...
> oop' = *oopPtr;

<nitpick>
Object memory words might not be size 4, so you probably meant:

  oopPtr = malloc(BytesPerWord);

</nitpick>

Dave





More information about the Squeak-dev mailing list