]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Prepare for forthcoming LLVM 13 API change.
authorThomas Munro <tmunro@postgresql.org>
Thu, 24 Jun 2021 21:55:26 +0000 (09:55 +1200)
committerThomas Munro <tmunro@postgresql.org>
Thu, 24 Jun 2021 23:29:47 +0000 (11:29 +1200)
commit6ada4fd06666cf778dacec0fb98d569760ffd70a
tree05c52b3eba52609bdd2675f4c0c8d9fd46a323bd
parent0efd2a1a66dd6e27b097ad533311d8e1ad7ca309
Prepare for forthcoming LLVM 13 API change.

LLVM 13 (due out in September) has changed the semantics of
LLVMOrcAbsoluteSymbols(), so we need to bump some reference counts to
avoid a double-free that causes crashes and bad query results.

A proactive change seems necessary to avoid having a window of time
where our respective latest releases would interact badly.  It's
possible that the situation could change before then, though.

Thanks to Fabien Coelho for monitoring bleeding edge LLVM and Andres
Freund for tracking down the change.

Back-patch to 11, where the JIT code arrived.

Discussion: https://postgr.es/m/CA%2BhUKGLEy8mgtN7BNp0ooFAjUedDTJj5dME7NxLU-m91b85siA%40mail.gmail.com
src/backend/jit/llvm/llvmjit.c