pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: jit: Don't inline functions that access thread-locals.
5+ messages / 1 participants
[nested] [flat]

* pgsql: jit: Don't inline functions that access thread-locals.
@ 2021-07-22 03:24  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Thomas Munro @ 2021-07-22 03:24 UTC (permalink / raw)
  To: pgsql-committers@lists.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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0207d5fbebed7eb698a7e5f3adf30fafe95bc4b9

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: jit: Don't inline functions that access thread-locals.
@ 2021-07-22 03:24  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Thomas Munro @ 2021-07-22 03:24 UTC (permalink / raw)
  To: pgsql-committers@lists.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

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(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: jit: Don't inline functions that access thread-locals.
@ 2021-07-22 03:24  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Thomas Munro @ 2021-07-22 03:24 UTC (permalink / raw)
  To: pgsql-committers@lists.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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1cfc9f2ef61df81fa54a697081e372672c23e980

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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: jit: Don't inline functions that access thread-locals.
@ 2021-07-22 03:25  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Thomas Munro @ 2021-07-22 03:25 UTC (permalink / raw)
  To: pgsql-committers@lists.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

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(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* pgsql: jit: Don't inline functions that access thread-locals.
@ 2021-07-22 03:25  Thomas Munro <tmunro@postgresql.org>
  0 siblings, 0 replies; 5+ messages in thread

From: Thomas Munro @ 2021-07-22 03:25 UTC (permalink / raw)
  To: pgsql-committers@lists.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

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(+)



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2021-07-22 03:25 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 03:24 pgsql: jit: Don't inline functions that access thread-locals. Thomas Munro <tmunro@postgresql.org>
2021-07-22 03:24 pgsql: jit: Don't inline functions that access thread-locals. Thomas Munro <tmunro@postgresql.org>
2021-07-22 03:24 pgsql: jit: Don't inline functions that access thread-locals. Thomas Munro <tmunro@postgresql.org>
2021-07-22 03:25 pgsql: jit: Don't inline functions that access thread-locals. Thomas Munro <tmunro@postgresql.org>
2021-07-22 03:25 pgsql: jit: Don't inline functions that access thread-locals. Thomas Munro <tmunro@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox