Strengthen valgrind checks
This commit is contained in:
@@ -263,7 +263,7 @@ struct MemManager {
|
|||||||
if (next == firstUnaddressable) {
|
if (next == firstUnaddressable) {
|
||||||
mprotectSafe(base + firstUnaddressable, kUpsizeBytes,
|
mprotectSafe(base + firstUnaddressable, kUpsizeBytes,
|
||||||
PROT_READ | PROT_WRITE);
|
PROT_READ | PROT_WRITE);
|
||||||
VALGRIND_MAKE_MEM_UNDEFINED(base + firstUnaddressable, kUpsizeBytes);
|
VALGRIND_MAKE_MEM_NOACCESS(base + firstUnaddressable, kUpsizeBytes);
|
||||||
firstUnaddressable += kUpsizeNodes;
|
firstUnaddressable += kUpsizeNodes;
|
||||||
#if SHOW_MEMORY
|
#if SHOW_MEMORY
|
||||||
mmapBytes = getBytes();
|
mmapBytes = getBytes();
|
||||||
@@ -278,6 +278,7 @@ struct MemManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VALGRIND_MAKE_MEM_UNDEFINED(base + next, sizeof(Node));
|
||||||
return next++;
|
return next++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1682,4 +1683,4 @@ int main() {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// GCOVR_EXCL_STOP
|
// GCOVR_EXCL_STOP
|
||||||
|
Reference in New Issue
Block a user