Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
memoryallocation.h File Reference
#include <cstdlib>
#include <cstdint>
#include <cstddef>
#include <stdexcept>
#include <string.h>
Include dependency graph for memoryallocation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  aligned_allocator< T, Alignment >
struct  aligned_allocator< T, Alignment >::rebind< U >

Functions

void memory_purge ()
void memory_configurator ()
void * aligned_malloc (size_t size, std::size_t align)
void aligned_free (void *p)

Function Documentation

◆ aligned_free()

void aligned_free ( void * p)
inline

Definition at line 81 of file memoryallocation.h.

Here is the caller graph for this function:

◆ aligned_malloc()

void * aligned_malloc ( size_t size,
std::size_t align )
inline

Alligned malloc, could be done using aligned_alloc

Definition at line 49 of file memoryallocation.h.

Here is the caller graph for this function:

◆ memory_configurator()

void memory_configurator ( )

Initialize memory allocator configuration.

Definition at line 101 of file memoryallocation.cpp.

Here is the caller graph for this function:

◆ memory_purge()

void memory_purge ( )

Purge jemalloc arenas to actually return memory to the system. If not using jemalloc, does nothing.

Purge allocations from all arenas to actually release memory back to system

Definition at line 94 of file memoryallocation.cpp.

Here is the caller graph for this function: