Re: Lockless queue of waiters in LWLock - Mailing list pgsql-hackers

From Pavel Borisov
Subject Re: Lockless queue of waiters in LWLock
Date
Msg-id CALT9ZEF80HJvVZ_bEPzfdDsPBPmCSb0QT4b82vXGFRkHis1pLg@mail.gmail.com
Whole thread Raw
In response to Re: Lockless queue of waiters in LWLock  (Pavel Borisov <pashkin.elfe@gmail.com>)
Responses Re: Lockless queue of waiters in LWLock
List pgsql-hackers
Hi, hackers!

I've noticed that alignment requirements for using
pg_atomic_init_u64() for LWlock state (there's an assertion that it's
aligned at 8 bytes) do not correspond to the code in SimpleLruInit()
on 32-bit arch when MAXIMUM_ALIGNOF = 4.
Fixed this in v4 patch (PFA).

Regards,
Pavel.

Attachment

pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: [PoC] Reducing planning time when tables have many partitions
Next
From: Ted Yu
Date:
Subject: redundant check of msg in does_not_exist_skipping