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 [email protected]
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 <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/[email protected]

Branch
------
REL_14_STABLE

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

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.