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

Commit1307bc3

Browse files
committed
Reset context at the tail end of JITed EEOP_AGG_PLAIN_TRANS.
While no negative consequences are currently known, it's clearly wrongto not reset the context in one of the branches.Reported-By: Dmitry DolgovAuthor: Dmitry DolgovDiscussion:https://postgr.es/m/CAGPqQf165-=+Drw3Voim7M5EjHT1zwPF9BQRjLFQzCzYnNZEiQ@mail.gmail.comBackpatch: 11-, where JIT compilation support was added
1 parent013f320 commit1307bc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,6 +2499,8 @@ llvm_compile_expr(ExprState *state)
24992499
/* store trans value */
25002500
LLVMBuildStore(b,v_newval,v_transvaluep);
25012501
LLVMBuildStore(b,v_fcinfo_isnull,v_transnullp);
2502+
2503+
l_mcxt_switch(mod,b,v_oldcontext);
25022504
LLVMBuildBr(b,opblocks[i+1]);
25032505

25042506
/* returned datum passed datum, no need to reparent */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp