talloc_tos() vs NULL and threads

Andrew Bartlett abartlet at samba.org
Fri Apr 4 13:09:18 MDT 2014


On Fri, 2014-04-04 at 16:15 +0200, Volker Lendecke wrote:
> On Fri, Apr 04, 2014 at 09:26:31AM +1300, Andrew Bartlett wrote:
> > What would, I think, be a reliable solution that can co-exist with
> > threads is to move from talloc_tos() to talloc_stackframe(), with an
> 
> You mean that wherever we now do a talloc_tos() instead
> allocate a new frame? If that's not what you meant, can you
> describe what you have in mind a bit differently?

That is what I'm suggesting.  As always with memory management, nothing
is easy, I'm just suggesting a different set of compromises. 

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba-technical mailing list