pgsql: jit: Don't inline functions that access thread-locals.
pgsql: jit: Don't inline functions that access thread-locals.
От:
Thomas Munro <tmunro@postgresql.org>
Дата:
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 Reviewed-by: Andres Freund 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(+)