Zeroing out an lwlock in a normal build turns out to not trigger any alarms,
if nobody can use the lwlock at that moment (as the case here). But with
--disable-spinlocks --disable-atomics, the sema field needs to be initialized.
We probably should make sure that this fails on more common configurations as
well...
Per buildfarm animal rorqual
/* reinitialize content */
Assert(shheader->magic == 0xdeadbeef);
- memset(shheader, 0, pgstat_get_kind_info(shhashent->key.kind)->shared_size);
- shheader->magic = 0xdeadbeef;
+ memset(pgstat_get_entry_data(kind, shheader), 0,
+ pgstat_get_entry_len(kind));
return shheader;
}