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

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: jit: Don't inline functions that access thread-locals.
Дата
Msg-id E1m6PKY-0008AG-LY@gemulon.postgresql.org
обсуждение исходный текст
Список 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_12_STABLE

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

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: pgsql: jit: Don't inline functions that access thread-locals.
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: jit: Don't inline functions that access thread-locals.