Skip to content

Commit bab1500

Browse files
committed
Register llvm_shutdown using on_proc_exit, not before_shmem_exit.
This seems more correct, because other before_shmem_exit calls may expect the infrastructure that is needed to run queries and access the database to be working, and also because this cleanup has nothing to do with shared memory. There are no known user-visible consequences to this, though, apart from what was previous fixed by commit 3036401 and back-patched as commit bcbc272 and commit f701368, so for now, no back-patch. Bharath Rupireddy Discussion: http://postgr.es/m/CALj2ACWk7j4F2v2fxxYfrroOF=AdFNPr1WsV+AGtHAFQOqm_pw@mail.gmail.com
1 parent a677535 commit bab1500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/jit/llvm/llvmjit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ llvm_session_initialize(void)
683683
}
684684
#endif
685685

686-
before_shmem_exit(llvm_shutdown, 0);
686+
on_proc_exit(llvm_shutdown, 0);
687687

688688
llvm_session_initialized = true;
689689

0 commit comments

Comments
 (0)