Use ShmemInitStruct to allocate lwlock.c's shared memory It's nice to have them show up in pg_shmem_allocations like all other shmem areas. ShmemInitStruct() depends on ShmemIndexLock, but only after postmaster startup.
Reviewed-by: Nathan Bossart <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/30d432502bf42343ec0f9ad599625cde0cb38e57 Modified Files -------------- src/backend/postmaster/launch_backend.c | 6 ------ src/backend/storage/ipc/ipci.c | 4 ++-- src/backend/storage/lmgr/lwlock.c | 32 ++++++++++++++++++++++---------- src/include/storage/lwlock.h | 7 +------ 4 files changed, 25 insertions(+), 24 deletions(-)
