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 <amdmi3@amdmi3.ru> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/16696-29d944a33801fbfe@postgresql.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/jit/llvm/llvmjit_inline.cpp | modified | +11 −0 |
Discussion
- Re: BUG #16696: Backend crash in llvmjit 14 messages · 2020-11-02 → 2021-07-22