MySQL 8.4.2
Source Code Documentation
|
Various macros useful for communicating with memory debuggers, such as Valgrind. More...
#include <string.h>
Go to the source code of this file.
Macros | |
#define | MEM_MALLOCLIKE_BLOCK(p1, p2, p3, p4) |
#define | MEM_FREELIKE_BLOCK(p1, p2) |
#define | MEM_UNDEFINED(a, len) ((void)0) |
#define | MEM_DEFINED_IF_ADDRESSABLE(a, len) ((void)0) |
#define | MEM_NOACCESS(a, len) ((void)0) |
#define | MEM_CHECK_ADDRESSABLE(a, len) ((void)0) |
Functions | |
void | TRASH (void *ptr, size_t length) |
Put bad content in memory to be sure it will segfault if dereferenced. More... | |
Various macros useful for communicating with memory debuggers, such as Valgrind.
#define MEM_CHECK_ADDRESSABLE | ( | a, | |
len | |||
) | ((void)0) |
#define MEM_DEFINED_IF_ADDRESSABLE | ( | a, | |
len | |||
) | ((void)0) |
#define MEM_FREELIKE_BLOCK | ( | p1, | |
p2 | |||
) |
#define MEM_MALLOCLIKE_BLOCK | ( | p1, | |
p2, | |||
p3, | |||
p4 | |||
) |
#define MEM_NOACCESS | ( | a, | |
len | |||
) | ((void)0) |
#define MEM_UNDEFINED | ( | a, | |
len | |||
) | ((void)0) |
|
inline |
Put bad content in memory to be sure it will segfault if dereferenced.
With Valgrind, verify that memory is addressable, and mark it undefined.