Re: Unimpressed with pg_attribute_always_inline - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Unimpressed with pg_attribute_always_inline
Date
Msg-id 20180109002257.mktia25jg7zgb54o@alap3.anarazel.de
Whole thread Raw
In response to Re: Unimpressed with pg_attribute_always_inline  (Peter Geoghegan <pg@bowt.ie>)
Responses Re: Unimpressed with pg_attribute_always_inline
List pgsql-hackers
On 2018-01-08 16:20:26 -0800, Peter Geoghegan wrote:
> On Mon, Jan 8, 2018 at 4:12 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > When I complained that always_inline inhibits debuggability, I did NOT
> > mean what shows up in perf reports.  I'm talking about whether you can
> > break at, or single-step through, a function reliably and whether gdb
> > knows where all the variables are.  In my experience, inlining hurts
> > both of those things, which is why I'm saying that forcing inlining
> > even in non-optimized builds is a bad idea.
> 
> Isn't that an argument against inlining in general, rather than
> forcing inlining in particular?

No. Normal 'inline' annotation doesn't do anything on -O0 / debug
builds. But always_inline does, even though the goal of the usage is
just to override the compiler's inlining heuristics.

Greetings,

Andres Freund


pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Unimpressed with pg_attribute_always_inline
Next
From: Peter Geoghegan
Date:
Subject: Re: Unimpressed with pg_attribute_always_inline