Functions | |
void | libcwd::make_invisible (void const *void_ptr) |
Make allocation pointed to by ptr invisible. More... | |
void | libcwd::make_all_allocations_invisible_except (void const *ptr) |
Make all current allocations invisible except the given pointer. More... | |
void | libcwd::make_exit_function_list_invisible () |
Make allocations done in libc.so:__new_exitfn invisible. More... | |
|
inline |
Make all current allocations invisible except the given pointer.
All allocations, except the given pointer, are made invisible; they won't show up anymore in the overview of allocated memory.
If you want to make all allocations invisible, just pass NULL
as parameter.
Example:
void libcwd::make_exit_function_list_invisible | ( | ) |
Make allocations done in libc.so:__new_exitfn invisible.
This makes the allocation done in __new_exitfn (libc.so) invisible because it is not freed until after all __cxa_atexit functions have been called and would therefore always falsely trigger a memory leak detection. This function can be called first thing in main().
Example:
References libcwd::make_invisible().
|
inline |
Make allocation pointed to by ptr invisible.
The allocation pointed to by ptr is made invisible; it won't show up anymore in the overview of allocated memory.
Example:
Referenced by libcwd::make_exit_function_list_invisible().