From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: jit: Don't inline functions that access thread-locals. |
Date: | 2021-07-22 03:25:02 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)amdmi3(dot)ru>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/[email protected]
Branch
------
REL_12_STABLE
Modified Files
--------------
src/backend/jit/llvm/llvmjit_inline.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2021-07-22 03:25:15 | pgsql: jit: Don't inline functions that access thread-locals. |
Previous Message | Thomas Munro | 2021-07-22 03:24:50 | pgsql: jit: Don't inline functions that access thread-locals. |