Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 783d6ee

Browse files
committed
radix_tree: fix pmemcheck annotation
Use annotation only if PMEMCHECK is enabled (not just any valgrind tool).
1 parent a82bbb2 commit 783d6ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/libpmemobj++/experimental/radix_tree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ void
10241024
radix_tree<Key, Value, BytesView>::runtime_initialize_mt(ebr *e)
10251025
{
10261026
mt.get(false) = true;
1027-
#if LIBPMEMOBJ_CPP_ANY_VG_TOOL_ENABLED
1027+
#if LIBPMEMOBJ_CPP_VG_PMEMCHECK_ENABLED
10281028
VALGRIND_PMC_REMOVE_PMEM_MAPPING(&ebr_, sizeof(ebr *));
10291029
#endif
10301030
ebr_ = e;

0 commit comments

Comments
 (0)