CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
Memory.cc File Reference
#include "Memory.h"
#include <cerrno>
#include <spdlog/fmt/fmt.h>
#include <spdlog/spdlog.h>
Include dependency graph for Memory.cc:

Functions

bool ExcludeFromCoreDump (void *address, size_t size)
 Mark the memory address range provided to be excluded from core dumps, if this is supported by the platform. The range must be page-aligned.
 

Function Documentation

◆ ExcludeFromCoreDump()

bool ExcludeFromCoreDump ( void *  address,
size_t  size 
)

Mark the memory address range provided to be excluded from core dumps, if this is supported by the platform. The range must be page-aligned.

Mark the memory address range provided to be excluded from core dumps, using the madvise system function, if this is supported by the platform (either MADV_DONTDUMP nor MADV_NOCORE must be defined). The address range must be page-aligned.

Note
If the functionality is unsupported or the address range is invalid, this function prints a warning message.
Here is the caller graph for this function: