Convert lwlock.c to use the new shmem allocation functions

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: a006bc7b1699d952afcb6d786343e8bf0ecc61d6
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-04-05T23:12:57Z
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

Files

Discussion