pgsql: Convert lwlock.c to use the new shmem allocation functions - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Convert lwlock.c to use the new shmem allocation functions
Date
Msg-id E1w9WsZ-0039A2-0Q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Convert lwlock.c to use the new shmem allocation functions

It seems like a good candidate to convert first because it needs to
initialized before any other subsystem, but other than that it's
nothing special.

Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a006bc7b1699d952afcb6d786343e8bf0ecc61d6

Modified Files
--------------
src/backend/postmaster/postmaster.c |  16 +++---
src/backend/storage/ipc/ipci.c      |  13 -----
src/backend/storage/lmgr/lwlock.c   | 100 +++++++++++++++++-------------------
src/backend/tcop/postgres.c         |  16 +++---
src/include/storage/lwlock.h        |   2 -
src/include/storage/subsystemlist.h |   9 +++-
6 files changed, 75 insertions(+), 81 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Introduce a registry of built-in shmem subsystems
Next
From: Michael Paquier
Date:
Subject: pgsql: Add tests for lock statistics, take two