git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: bcafa26) | patch
LLVMJIT: Release JIT context after running ExprContext shutdown callbacks.
2018年7月25日 23:31:49 +0000 (16:31 -0700)
2018年7月25日 23:31:49 +0000 (16:31 -0700)
commit 3acc4acd9bcbefbfaf789762950726c6208daf1b
LLVMJIT: Release JIT context after running ExprContext shutdown callbacks.

Due to inlining it previously was possible that an ExprContext's
shutdown callback pointed to a JITed function. As the JIT context
previously was shut down before the shutdown callbacks were called,
that could lead to segfaults. Fix the ordering.

Reported-By: Dmitry Dolgov
Author: Andres Freund
Discussion: https://postgr.es/m/CA+q6zcWO7CeAJtHBxgcHn_hj+PenM=tvG0RJ93X1uEJ86+76Ug@mail.gmail.com
Backpatch: 11-, where JIT compilation was added
src/backend/executor/execMain.c diff | blob | blame | history
src/backend/executor/execUtils.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /