Re: Add palloc_aligned() to allow arbitrary power of 2 memory alignment
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2022-12-22T00:34:23Z
Lists: pgsql-hackers
On Wed, 16 Nov 2022 at 23:56, David Rowley <dgrowleyml@gmail.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
Commits
-
Add palloc_aligned() to allow aligned memory allocations
- 439f61757f05 16.0 landed