pgsql: jit: Don't inline functions that access thread-locals. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: jit: Don't inline functions that access thread-locals.
Date
Msg-id E1m6PKM-00089Q-Ko@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1cfc9f2ef61df81fa54a697081e372672c23e980

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


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: jit: Don't inline functions that access thread-locals.
Next
From: Thomas Munro
Date:
Subject: pgsql: jit: Don't inline functions that access thread-locals.