On Tue, Apr 22, 2008 at 11:34:32AM -0700, Roman Shaposhnik wrote:
> Without knowing the details of how the structure to which t_sobj_ops is
> pointing gets managed it seems to me that there's a tiny window of
> opportunity between recording the address of the structure into
> this->tmp and the structure itself dealocated/reused for something
> else. Of course, the recorded address will still be valid, but once
> you do this->tmp->sobj_type you might get garbage. 
> 
> Can this happen?

No. t_sobj_ops is always assigned the address of a static structure that is
never deallocated. But it's a fair point for other cases, and I don't think
there's a generic solution.

Adam

-- 
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to