Revert "Add missing padding from MemoryChunk struct"
This reverts commitdf0f4feef
. 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 byd5ee4db0e
. The padding that was added indf0f4feef
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/3209100.1661787561@sss.pgh.pa.us
This commit is contained in:
parent
c98b6acdb2
commit
5495796ad1
|
@ -111,14 +111,6 @@ typedef struct MemoryChunk
|
||||||
{
|
{
|
||||||
#ifdef MEMORY_CONTEXT_CHECKING
|
#ifdef MEMORY_CONTEXT_CHECKING
|
||||||
Size requested_size;
|
Size requested_size;
|
||||||
#define MEMORYCHUNK_RAWSIZE (SIZEOF_SIZE_T + 8)
|
|
||||||
#else
|
|
||||||
#define MEMORYCHUNK_RAWSIZE 8
|
|
||||||
#endif /* MEMORY_CONTEXT_CHECKING */
|
|
||||||
|
|
||||||
/* ensure proper alignment by adding padding if needed */
|
|
||||||
#if (MEMORYCHUNK_RAWSIZE % MAXIMUM_ALIGNOF) != 0
|
|
||||||
char padding[MAXIMUM_ALIGNOF - MEMORYCHUNK_RAWSIZE % MAXIMUM_ALIGNOF];
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* bitfield for storing details about the chunk */
|
/* bitfield for storing details about the chunk */
|
||||||
|
|
Loading…
Reference in New Issue