Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment
Date: 2022-12-22 00:34:23
Message-ID: CAApHDvrAm7JjFqZ0PGWVBnOzs8J5wyZqF3qYktkiE__mHZbN-g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 16 Nov 2022 at 23:56, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
> I've attached an updated patch. The 0002 is just intended to exercise
> these allocations a little bit, it's not intended for commit. I was
> using that to ensure valgrind does not complain about anything. It
> seems happy now.

After making some comment adjustments and having adjusted the
calculation of how to get the old chunk size when doing repalloc() on
an aligned chunk, I've now pushed this.

Thank you for the reviews.

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2022-12-22 00:53:48 Re: New strategies for freezing, advancing relfrozenxid early
Previous Message Jeff Davis 2022-12-22 00:30:28 Re: New strategies for freezing, advancing relfrozenxid early