[Gc] Question about gc_cleanup

Miki Tebeka mtebeka at qualcomm.com
Wed Nov 2 05:13:20 PST 2005


Hello Ben,

> <snip>
> 
> >   /* Make objects inaccesible */
> >   f1 = NULL;
> >   f2 = NULL;
> > 
> >
> <snip>
> 
> This won't work reliably - the compiler can optimise away these writes 
> because so far as it can see the variables are never used afterwards.
Any bullet-proff way to make the compiler "behave"? (-O0 didn't do the
trick).

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mtebeka at qualcomm.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 207 bytes
Desc: not available
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20051102/61ff563c/attachment.pgp


More information about the Gc mailing list