Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5495796

Browse files
committed
Revert "Add missing padding from MemoryChunk struct"
This reverts commitdf0f4fe. It turns out the problem which was causingthe 32-bit ARM and PPC animals to fail was due to a MAXALIGN problem inslab.c. This was fixed byd5ee4db. The padding that was added indf0f4fe would only do anything on machines where uint64 was not alignedto 8 bytes. The 32-bit machines which were failing are not in thatcategory, so revert this commit.Discussion:https://postgr.es/m/3209100.1661787561@sss.pgh.pa.us
1 parentc98b6ac commit5495796

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
#ifdefMEMORY_CONTEXT_CHECKING
113113
Sizerequested_size;
114-
#defineMEMORYCHUNK_RAWSIZE(SIZEOF_SIZE_T + 8)
115-
#else
116-
#defineMEMORYCHUNK_RAWSIZE8
117-
#endif/* MEMORY_CONTEXT_CHECKING */
118-
119-
/* ensure proper alignment by adding padding if needed */
120-
#if (MEMORYCHUNK_RAWSIZE %MAXIMUM_ALIGNOF)!=0
121-
charpadding[MAXIMUM_ALIGNOF-MEMORYCHUNK_RAWSIZE %MAXIMUM_ALIGNOF];
122114
#endif
123115

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp