diff options
author | Andres Freund <andres@anarazel.de> | 2018-07-25 16:31:49 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2018-07-25 16:40:43 -0700 |
commit | ed7e319eb41361250ccb19379ef206b4a6d866de (patch) | |
tree | 02b8f434d19da57ab55838e656d9a885bc923b37 /src/tutorial/funcs.c | |
parent | 1cfa69dcd8eff4a9611bf726bb90e89b77922a61 (diff) | |
download | postgresql-ed7e319eb41361250ccb19379ef206b4a6d866de.tar.gz postgresql-ed7e319eb41361250ccb19379ef206b4a6d866de.zip |
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
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions