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

From: H. Peter Anvin
Date: Thu Oct 04 2018 - 16:08:39 EST


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