What is wrong with dtrace's stack()?
Ryan Stone
rysto32 at gmail.com
Mon Oct 22 20:50:43 UTC 2018
Adding -fno-optimize-sibling-calls to the compiler flags will eliminate the TCO.
On Mon, Oct 22, 2018 at 9:44 AM Lev Serebryakov <lev at freebsd.org> wrote:
>
> On 22.10.2018 14:45, Lev Serebryakov wrote:
>
> > CURVNET_SET(so->so_vnet);
> > if (!SOLISTENING(so))
> > error = so->so_proto->pr_usrreqs->pru_sosend(so, addr, uio,
> > top, control, flags, td);
> > else {
> > m_freem(top);
> > m_freem(control);
> > error = ENOTCONN;
> > }
> > CURVNET_RESTORE();
> Oh, I'm idiot, it is eligible for TCO, if VNET is not compiled-in.
>
>
> --
> // Lev Serebryakov
>
More information about the freebsd-hackers
mailing list