Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd9c05a9

Browse files
committed
Prepare for forthcoming LLVM 13 API change.
LLVM 13 (due out in September) has changed the semantics ofLLVMOrcAbsoluteSymbols(), so we need to bump some reference counts toavoid a double-free that causes crashes and bad query results.A proactive change seems necessary to avoid having a window of timewhere our respective latest releases would interact badly. It'spossible that the situation could change before then, though.Thanks to Fabien Coelho for monitoring bleeding edge LLVM and AndresFreund 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
1 parent7a9eaf1 commitd9c05a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/jit/llvm/llvmjit.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,9 @@ llvm_resolve_symbols(LLVMOrcDefinitionGeneratorRef GeneratorObj, void *Ctx,
10851085
{
10861086
constchar*name=LLVMOrcSymbolStringPoolEntryStr(LookupSet[i].Name);
10871087

1088+
#ifLLVM_VERSION_MAJOR>12
1089+
LLVMOrcRetainSymbolStringPoolEntry(LookupSet[i].Name);
1090+
#endif
10881091
symbols[i].Name=LookupSet[i].Name;
10891092
symbols[i].Sym.Address=llvm_resolve_symbol(name,NULL);
10901093
symbols[i].Sym.Flags.GenericFlags=LLVMJITSymbolGenericFlagsExported;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp