Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5495796

Browse files
committed
Revert "Add missing padding from MemoryChunk struct"
This reverts commit df0f4fe. It turns out the problem which was causing the 32-bit ARM and PPC animals to fail was due to a MAXALIGN problem in slab.c. This was fixed by d5ee4db. The padding that was added in df0f4fe would only do anything on machines where uint64 was not aligned to 8 bytes. The 32-bit machines which were failing are not in that category, so revert this commit. Discussion: https://postgr.es/m/[email protected]
1 parent c98b6ac commit 5495796

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/include/utils/memutils_memorychunk.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ typedef struct MemoryChunk
111111
{
112112
#ifdef MEMORY_CONTEXT_CHECKING
113113
Size requested_size;
114-
#define MEMORYCHUNK_RAWSIZE (SIZEOF_SIZE_T + 8)
115-
#else
116-
#define MEMORYCHUNK_RAWSIZE 8
117-
#endif /* MEMORY_CONTEXT_CHECKING */
118-
119-
/* ensure proper alignment by adding padding if needed */
120-
#if (MEMORYCHUNK_RAWSIZE % MAXIMUM_ALIGNOF) != 0
121-
char padding[MAXIMUM_ALIGNOF - MEMORYCHUNK_RAWSIZE % MAXIMUM_ALIGNOF];
122114
#endif
123115

124116
/* bitfield for storing details about the chunk */

0 commit comments

Comments
 (0)