Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

H. Peter Anvin
2018-10-04T20:08:39Z

On 10/04/18 13:05, Nadav Amit wrote:
>
> Funny. Immediate-patching is what I was playing with when I encountered the
> gcc issue. Performance got worse instead of improving (or at least staying
> the same), because inlining got crazy.
>
> Anyhow, wait for my soon-to-be-sent RFC in which I define a macro called
> “call” (to reduce the retpoline overhead) before you talk about damage to
> the eyes.
>

Doing it well is *hard*, as I discovered. The actual patch is much,
much, larger.

-hpa