Check "latestRoot" property

This commit is contained in:
2024-06-05 12:41:07 -07:00
parent 1492a1c3d4
commit efd2405443

View File

@@ -962,6 +962,10 @@ struct __attribute__((__visibility__("hidden"))) VersionedMap::Impl {
} }
roots.add(latestRoot, latestVersion); roots.add(latestRoot, latestVersion);
totalMallocBytes += mallocBytesDelta; totalMallocBytes += mallocBytesDelta;
// Check the "latestRoot is only meaningful in the callstack of
// addMutations" property
VALGRIND_MAKE_MEM_UNDEFINED(&latestRoot, sizeof(latestRoot));
} }
struct StepwiseFirstGeq { struct StepwiseFirstGeq {