pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: jit: No backport::SectionMemoryManager for LLVM 22. 6+ messages / 1 participants [nested] [flat]
* pgsql: jit: No backport::SectionMemoryManager for LLVM 22. @ 2026-04-03 02:15 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2026-04-03 02:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org jit: No backport::SectionMemoryManager for LLVM 22. LLVM 22 has the fix that we copied into our tree in commit 9044fc1d and a new function to reach it[1][2], so we only need to use our copy for Aarch64 + LLVM < 22. The only change to the final version that our copy didn't get is a new LLVM_ABI macro, but that isn't appropriate for us. Our copy is hopefully now frozen and would only need maintenance if bugs are found in the upstream code. Non-Aarch64 systems now also use the new API with LLVM 22. It allocates all sections with one contiguous mmap() instead of one per section. We could have done that earlier, but commit 9044fc1d wanted to limit the blast radius to the affected systems. We might as well benefit from that small improvement everywhere now that it is available out of the box. We can't delete our copy until LLVM 22 is our minimum supported version, or we switch to the newer JITLink API for at least Aarch64. [1] https://github.com/llvm/llvm-project/pull/71968 [2] https://github.com/llvm/llvm-project/pull/174307 Backpatch-through: 14 Discussion: https://postgr.es/m/CA%2BhUKGJTumad75o8Zao-LFseEbt%3DenbUFCM7LZVV%3Dc8yg2i7dg%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/be21341e13d996b54ff8a2f1f9c8f4f1b63fc9ea Modified Files -------------- src/backend/jit/llvm/SectionMemoryManager.cpp | 19 ++++++------------- src/backend/jit/llvm/llvmjit.c | 5 ++++- src/include/jit/SectionMemoryManager.h | 2 +- src/include/jit/llvmjit_backport.h | 4 ++-- 4 files changed, 13 insertions(+), 17 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: jit: No backport::SectionMemoryManager for LLVM 22. @ 2026-04-03 02:15 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2026-04-03 02:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org jit: No backport::SectionMemoryManager for LLVM 22. LLVM 22 has the fix that we copied into our tree in commit 9044fc1d and a new function to reach it[1][2], so we only need to use our copy for Aarch64 + LLVM < 22. The only change to the final version that our copy didn't get is a new LLVM_ABI macro, but that isn't appropriate for us. Our copy is hopefully now frozen and would only need maintenance if bugs are found in the upstream code. Non-Aarch64 systems now also use the new API with LLVM 22. It allocates all sections with one contiguous mmap() instead of one per section. We could have done that earlier, but commit 9044fc1d wanted to limit the blast radius to the affected systems. We might as well benefit from that small improvement everywhere now that it is available out of the box. We can't delete our copy until LLVM 22 is our minimum supported version, or we switch to the newer JITLink API for at least Aarch64. [1] https://github.com/llvm/llvm-project/pull/71968 [2] https://github.com/llvm/llvm-project/pull/174307 Backpatch-through: 14 Discussion: https://postgr.es/m/CA%2BhUKGJTumad75o8Zao-LFseEbt%3DenbUFCM7LZVV%3Dc8yg2i7dg%40mail.gmail.com Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5c54e0f48fa2bc55080529179da9e49a22eeb0f4 Modified Files -------------- src/backend/jit/llvm/SectionMemoryManager.cpp | 19 ++++++------------- src/backend/jit/llvm/llvmjit.c | 5 ++++- src/include/jit/SectionMemoryManager.h | 2 +- src/include/jit/llvmjit_backport.h | 4 ++-- 4 files changed, 13 insertions(+), 17 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: jit: No backport::SectionMemoryManager for LLVM 22. @ 2026-04-03 02:16 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2026-04-03 02:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org jit: No backport::SectionMemoryManager for LLVM 22. LLVM 22 has the fix that we copied into our tree in commit 9044fc1d and a new function to reach it[1][2], so we only need to use our copy for Aarch64 + LLVM < 22. The only change to the final version that our copy didn't get is a new LLVM_ABI macro, but that isn't appropriate for us. Our copy is hopefully now frozen and would only need maintenance if bugs are found in the upstream code. Non-Aarch64 systems now also use the new API with LLVM 22. It allocates all sections with one contiguous mmap() instead of one per section. We could have done that earlier, but commit 9044fc1d wanted to limit the blast radius to the affected systems. We might as well benefit from that small improvement everywhere now that it is available out of the box. We can't delete our copy until LLVM 22 is our minimum supported version, or we switch to the newer JITLink API for at least Aarch64. [1] https://github.com/llvm/llvm-project/pull/71968 [2] https://github.com/llvm/llvm-project/pull/174307 Backpatch-through: 14 Discussion: https://postgr.es/m/CA%2BhUKGJTumad75o8Zao-LFseEbt%3DenbUFCM7LZVV%3Dc8yg2i7dg%40mail.gmail.com Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0a2291b59f9b7f44b2b2c362fad60ca9ff026a60 Modified Files -------------- src/backend/jit/llvm/SectionMemoryManager.cpp | 19 ++++++------------- src/backend/jit/llvm/llvmjit.c | 5 ++++- src/include/jit/SectionMemoryManager.h | 2 +- src/include/jit/llvmjit_backport.h | 4 ++-- 4 files changed, 13 insertions(+), 17 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: jit: No backport::SectionMemoryManager for LLVM 22. @ 2026-04-03 02:16 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2026-04-03 02:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org jit: No backport::SectionMemoryManager for LLVM 22. LLVM 22 has the fix that we copied into our tree in commit 9044fc1d and a new function to reach it[1][2], so we only need to use our copy for Aarch64 + LLVM < 22. The only change to the final version that our copy didn't get is a new LLVM_ABI macro, but that isn't appropriate for us. Our copy is hopefully now frozen and would only need maintenance if bugs are found in the upstream code. Non-Aarch64 systems now also use the new API with LLVM 22. It allocates all sections with one contiguous mmap() instead of one per section. We could have done that earlier, but commit 9044fc1d wanted to limit the blast radius to the affected systems. We might as well benefit from that small improvement everywhere now that it is available out of the box. We can't delete our copy until LLVM 22 is our minimum supported version, or we switch to the newer JITLink API for at least Aarch64. [1] https://github.com/llvm/llvm-project/pull/71968 [2] https://github.com/llvm/llvm-project/pull/174307 Backpatch-through: 14 Discussion: https://postgr.es/m/CA%2BhUKGJTumad75o8Zao-LFseEbt%3DenbUFCM7LZVV%3Dc8yg2i7dg%40mail.gmail.com Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/8354cd7ff5752035336f34149f97674c2399d905 Modified Files -------------- src/backend/jit/llvm/SectionMemoryManager.cpp | 19 ++++++------------- src/backend/jit/llvm/llvmjit.c | 5 ++++- src/include/jit/SectionMemoryManager.h | 2 +- src/include/jit/llvmjit_backport.h | 4 ++-- 4 files changed, 13 insertions(+), 17 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: jit: No backport::SectionMemoryManager for LLVM 22. @ 2026-04-03 02:16 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2026-04-03 02:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org jit: No backport::SectionMemoryManager for LLVM 22. LLVM 22 has the fix that we copied into our tree in commit 9044fc1d and a new function to reach it[1][2], so we only need to use our copy for Aarch64 + LLVM < 22. The only change to the final version that our copy didn't get is a new LLVM_ABI macro, but that isn't appropriate for us. Our copy is hopefully now frozen and would only need maintenance if bugs are found in the upstream code. Non-Aarch64 systems now also use the new API with LLVM 22. It allocates all sections with one contiguous mmap() instead of one per section. We could have done that earlier, but commit 9044fc1d wanted to limit the blast radius to the affected systems. We might as well benefit from that small improvement everywhere now that it is available out of the box. We can't delete our copy until LLVM 22 is our minimum supported version, or we switch to the newer JITLink API for at least Aarch64. [1] https://github.com/llvm/llvm-project/pull/71968 [2] https://github.com/llvm/llvm-project/pull/174307 Backpatch-through: 14 Discussion: https://postgr.es/m/CA%2BhUKGJTumad75o8Zao-LFseEbt%3DenbUFCM7LZVV%3Dc8yg2i7dg%40mail.gmail.com Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/963fccc09cc6b3fe6f0a6246e5af16c9d9af100d Modified Files -------------- src/backend/jit/llvm/SectionMemoryManager.cpp | 19 ++++++------------- src/backend/jit/llvm/llvmjit.c | 5 ++++- src/include/jit/SectionMemoryManager.h | 2 +- src/include/jit/llvmjit_backport.h | 4 ++-- 4 files changed, 13 insertions(+), 17 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: jit: No backport::SectionMemoryManager for LLVM 22. @ 2026-04-03 02:16 Thomas Munro <tmunro@postgresql.org> 0 siblings, 0 replies; 6+ messages in thread From: Thomas Munro @ 2026-04-03 02:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org jit: No backport::SectionMemoryManager for LLVM 22. LLVM 22 has the fix that we copied into our tree in commit 9044fc1d and a new function to reach it[1][2], so we only need to use our copy for Aarch64 + LLVM < 22. The only change to the final version that our copy didn't get is a new LLVM_ABI macro, but that isn't appropriate for us. Our copy is hopefully now frozen and would only need maintenance if bugs are found in the upstream code. Non-Aarch64 systems now also use the new API with LLVM 22. It allocates all sections with one contiguous mmap() instead of one per section. We could have done that earlier, but commit 9044fc1d wanted to limit the blast radius to the affected systems. We might as well benefit from that small improvement everywhere now that it is available out of the box. We can't delete our copy until LLVM 22 is our minimum supported version, or we switch to the newer JITLink API for at least Aarch64. [1] https://github.com/llvm/llvm-project/pull/71968 [2] https://github.com/llvm/llvm-project/pull/174307 Backpatch-through: 14 Discussion: https://postgr.es/m/CA%2BhUKGJTumad75o8Zao-LFseEbt%3DenbUFCM7LZVV%3Dc8yg2i7dg%40mail.gmail.com Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9b354cfc55846464d19c695badbe6897d0393988 Modified Files -------------- src/backend/jit/llvm/SectionMemoryManager.cpp | 19 ++++++------------- src/backend/jit/llvm/llvmjit.c | 5 ++++- src/include/jit/SectionMemoryManager.h | 2 +- src/include/jit/llvmjit_backport.h | 4 ++-- 4 files changed, 13 insertions(+), 17 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-04-03 02:16 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-04-03 02:15 pgsql: jit: No backport::SectionMemoryManager for LLVM 22. Thomas Munro <tmunro@postgresql.org> 2026-04-03 02:15 pgsql: jit: No backport::SectionMemoryManager for LLVM 22. Thomas Munro <tmunro@postgresql.org> 2026-04-03 02:16 pgsql: jit: No backport::SectionMemoryManager for LLVM 22. Thomas Munro <tmunro@postgresql.org> 2026-04-03 02:16 pgsql: jit: No backport::SectionMemoryManager for LLVM 22. Thomas Munro <tmunro@postgresql.org> 2026-04-03 02:16 pgsql: jit: No backport::SectionMemoryManager for LLVM 22. Thomas Munro <tmunro@postgresql.org> 2026-04-03 02:16 pgsql: jit: No backport::SectionMemoryManager for LLVM 22. 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