Skip to content

Commit 42fe052

Browse files
committed
obj: add footer ignoring for valgrind (#27)
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
1 parent f6bf678 commit 42fe052

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/libpmemobj/memblock.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,13 @@ huge_write_footer(struct chunk_header *hdr, uint32_t size_idx)
11741174
struct chunk_header f = *hdr;
11751175
f.type = CHUNK_TYPE_FOOTER;
11761176
f.size_idx = size_idx;
1177+
1178+
/*
1179+
* no need to transact and persist,
1180+
* footers are recreated in heap_populate_buckets
1181+
*/
1182+
VALGRIND_ADD_TO_GLOBAL_TX_IGNORE(hdr + size_idx - 1, sizeof(f));
11771183
*(hdr + size_idx - 1) = f;
1178-
/* no need to persist, footers are recreated in heap_populate_buckets */
11791184
VALGRIND_SET_CLEAN(hdr + size_idx - 1, sizeof(f));
11801185
}
11811186

0 commit comments

Comments
 (0)