pgsql: Fix incorrect sentinel byte logic in GenerationRealloc()

2024-07-05 Thread David Rowley
Fix incorrect sentinel byte logic in GenerationRealloc() This only affects MEMORY_CONTEXT_CHECKING builds. This fixes an off-by-one issue in GenerationRealloc() where the fast-path code which tries to reuse the existing allocation if the existing chunk is >= the new requested size. The code ther

pgsql: Fix incorrect sentinel byte logic in GenerationRealloc()

2024-07-05 Thread David Rowley
Fix incorrect sentinel byte logic in GenerationRealloc() This only affects MEMORY_CONTEXT_CHECKING builds. This fixes an off-by-one issue in GenerationRealloc() where the fast-path code which tries to reuse the existing allocation if the existing chunk is >= the new requested size. The code ther

pgsql: Fix incorrect sentinel byte logic in GenerationRealloc()

2024-07-05 Thread David Rowley
Fix incorrect sentinel byte logic in GenerationRealloc() This only affects MEMORY_CONTEXT_CHECKING builds. This fixes an off-by-one issue in GenerationRealloc() where the fast-path code which tries to reuse the existing allocation if the existing chunk is >= the new requested size. The code ther