pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: jit: Don't inline functions that access thread-locals.
Date: Thu, 22 Jul 2021 03:25:15 +0000
Message-ID: <E1m6PKl-0008BA-Qa@gemulon.postgresql.org> (raw)

jit: Don't inline functions that access thread-locals.

Code inlined by LLVM can crash or fail with "Relocation type not
implemented yet!" if it tries to access thread local variables.  Don't
inline such code.

Back-patch to 11, where LLVM arrived.  Bug #16696.

Author: Dmitry Marakasov <amdmi3@amdmi3.ru>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/16696-29d944a33801fbfe@postgresql.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e515943acc06a37ef4e8f9a723504c5102e87eed

Modified Files
--------------
src/backend/jit/llvm/llvmjit_inline.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)



view thread (5+ messages)

Message-ID: <E1m6PKl-0008BA-Qa@gemulon.postgresql.org>
Permalink:  ../E1m6PKl-0008BA-Qa@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m6PKl-0008BA-Qa@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: jit: Don't inline functions that access thread-locals.
  In-Reply-To: <E1m6PKl-0008BA-Qa@gemulon.postgresql.org>
  References: <E1m6PKl-0008BA-Qa@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox