pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Prepare for forthcoming LLVM 13 API change. 4+ messages / 1 participants [nested] [flat]
* pgsql: Prepare for forthcoming LLVM 13 API change. @ 2021-06-24 23:31 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-06-24 23:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9b4e4cfe66ff133717c1b8ba3c2725d525c3e67c Modified Files -------------- src/backend/jit/llvm/llvmjit.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Prepare for forthcoming LLVM 13 API change. @ 2021-06-24 23:31 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-06-24 23:31 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d9c05a9ec49399a45d30acacac748625922cbe40 Modified Files -------------- src/backend/jit/llvm/llvmjit.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Prepare for forthcoming LLVM 13 API change. @ 2021-06-24 23:32 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-06-24 23:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/47d22649e6a233a44030ef357969ade85f3ba724 Modified Files -------------- src/backend/jit/llvm/llvmjit.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Prepare for forthcoming LLVM 13 API change. @ 2021-06-24 23:32 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Thomas Munro @ 2021-06-24 23:32 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/6ada4fd06666cf778dacec0fb98d569760ffd70a Modified Files -------------- src/backend/jit/llvm/llvmjit.c | 3 +++ 1 file changed, 3 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2021-06-24 23:32 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-06-24 23:31 pgsql: Prepare for forthcoming LLVM 13 API change. Thomas Munro <tmunro@postgresql.org> 2021-06-24 23:31 pgsql: Prepare for forthcoming LLVM 13 API change. Thomas Munro <tmunro@postgresql.org> 2021-06-24 23:32 pgsql: Prepare for forthcoming LLVM 13 API change. Thomas Munro <tmunro@postgresql.org> 2021-06-24 23:32 pgsql: Prepare for forthcoming LLVM 13 API change. 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