Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/libpmemobj/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,12 @@ huge_write_footer(struct chunk_header *hdr, uint32_t size_idx)
struct chunk_header f = *hdr;
f.type = CHUNK_TYPE_FOOTER;
f.size_idx = size_idx;

/*
* footers are metadata that is replayed when rebuilding the heap
* and do not require transactional or persistent storage
*/
VALGRIND_ADD_TO_GLOBAL_TX_IGNORE(hdr + size_idx - 1, sizeof(f));
*(hdr + size_idx - 1) = f;
/* no need to persist, footers are recreated in heap_populate_buckets */
VALGRIND_SET_CLEAN(hdr + size_idx - 1, sizeof(f));
Expand Down
Loading