talloc_tos() vs talloc_stackframe()
David Disseldorp
ddiss at samba.org
Mon Jun 25 13:10:01 UTC 2018
On Fri, 22 Jun 2018 07:46:22 +0200, Volker Lendecke via samba-technical wrote:
> Just to clarify: We used to have a pattern where we handed down a
> talloc context for temporary use within a function. This is what I
> object to and want to see it replaced by talloc_tos().
I don't believe that registers / stack space are in such short supply
that we're force to use globals for this. Especially given that we're
often already passing in a context parameter which makes for a nice
parent for short lived child allocations.
Cheers, David (the broken record ;)
More information about the samba-technical
mailing list