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

Commitcc3c4af

Browse files
committed
Fix bug in generation.c's valgrind support.
This doesn't look like the last such bug, but it's one that thetest_decoding regression test is tripping over. Per buildfarm.Tomas VondraDiscussion:https://postgr.es/m/c903f275-2150-fa52-64bf-dca7b53ebf8d@fuzzy.cz
1 parent9c55391 commitcc3c4af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/backend/utils/mmgr/generation.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,14 @@ GenerationAlloc(MemoryContext context, Size size)
409409

410410
chunk= (GenerationChunk*)block->freeptr;
411411

412+
/* Prepare to initialize the chunk header. */
413+
VALGRIND_MAKE_MEM_UNDEFINED(chunk,Generation_CHUNKHDRSZ);
414+
412415
block->nchunks+=1;
413416
block->freeptr+= (Generation_CHUNKHDRSZ+chunk_size);
414417

418+
Assert(block->freeptr <=block->endptr);
419+
415420
chunk->block=block;
416421

417422
chunk->context=set;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp