/
githubmirror
/
postgres
Обзор
Документация
Войти
/
githubmirror
/
postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/include/jit/llvmjit_backport.h
22 строки
765 B
Thomas Munro
jit: No backport::SectionMemoryManager for LLVM 22.
03 апр 2026, 04:55
03 апр 2026, 04:55
be21341
Код
Авторство
О чём код?
/* * A small header than can be included by backported LLVM code or PostgreSQL * code, to control conditional compilation. */ #ifndef LLVMJIT_BACKPORT_H #define LLVMJIT_BACKPORT_H #include <llvm/Config/llvm-config.h> /* * Pre-LLVM 22 RuntimeDyld can produce code that crashes on large memory ARM * systems, because llvm::SectionMemoryManager allocates multiple pieces of * memory that can be placed too far apart for the generated code. See * src/backend/jit/llvm/SectionMemoryManager.cpp for the patched replacement * class llvm::backport::SectionMemoryManager that we use as a workaround. * This header controls whether we use it. */ #if defined(__aarch64__) && LLVM_VERSION_MAJOR < 22 #define USE_LLVM_BACKPORT_SECTION_MEMORY_MANAGER #endif #endif