Re: [PATCH -v7][RFC]: mutex: implement adaptive spinning

From: Ingo Molnar
Date: Mon Jan 12 2009 - 03:41:33 EST



* Jamie Lokier <jamie@xxxxxxxxxxxxx> wrote:

> Ingo Molnar wrote:
> > If it's used once in a single .c file it should be inlined even if
> > it's large.
>
> As Linus has pointed out, because of GCC not sharing stack among
> different inlined functions, the above is surprisingly not true.

Yes, but note that this has no relevance to the specific case of
CONFIG_OPTIMIZE_INLINING: GCC can at most decide to inline _less_, not
more. I.e. under CONFIG_OPTIMIZE_INLINING we can only end up having less
stack sharing trouble.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/