PPL Logo

conv-core/memory-leak.C File Reference

Go to the source code of this file.

Data Structures

struct  Slot

Typedefs

typedef struct Slot Slot

Functions

static char * Slot_toUser (Slot *s)
static SlotSlot_fmUser (void *user)
static void printSlot (Slot *s)
void CmiMemoryMark (void)
void CmiMemoryMarkBlock (void *blk)
void CmiMemorySweep (const char *where)
void CmiMemoryCheck (void)
static void * setSlot (Slot *s, int userSize)
static void freeSlot (Slot *s)
static void status (const char *msg)
static void meta_init (char **argv)
static void * meta_malloc (size_t size)
static void meta_free (void *mem)
static void * meta_calloc (size_t nelem, size_t size)
static void meta_cfree (void *mem)
static void * meta_realloc (void *oldBuffer, size_t newSize)
static void * meta_memalign (size_t align, size_t size)
static int meta_posix_memalign (void **outptr, size_t align, size_t size)
static void * meta_aligned_alloc (size_t align, size_t size)
static void * meta_valloc (size_t size)
static void * meta_pvalloc (size_t size)

Variables

Slot slot_first_storage = {&slot_first_storage,&slot_first_storage}
Slotslot_first = &slot_first_storage
static int memoryTraceDisabled = 0


Typedef Documentation

typedef struct Slot Slot

Definition at line 25 of file memory-leak.C.


Function Documentation

static char* Slot_toUser ( Slot s  )  [static]

Definition at line 50 of file memory-leak.C.

static Slot* Slot_fmUser ( void *  user  )  [static]

Definition at line 55 of file memory-leak.C.

References PUP::s.

static void printSlot ( Slot s  )  [static]

Definition at line 61 of file memory-leak.C.

References CmiBacktracePrint(), CmiMyPe(), CmiPrintf(), Slot::from, Slot_toUser(), and Slot::userSize.

Here is the call graph for this function:

void CmiMemoryMark ( void   ) 

Definition at line 76 of file memory-leak.C.

References CmiMemLock(), CmiMemUnlock(), mm_malloc, Slot::next, and Slot::prev.

Here is the call graph for this function:

void CmiMemoryMarkBlock ( void *  blk  ) 

Definition at line 85 of file memory-leak.C.

References CmiAbort(), CmiMemLock(), CmiMemUnlock(), Slot::magic, Slot::next, Slot::prev, PUP::s, and Slot_fmUser().

Here is the call graph for this function:

void CmiMemorySweep ( const char *  where  ) 

Definition at line 97 of file memory-leak.C.

References CmiMemLock(), CmiMemoryMark(), CmiMemUnlock(), CmiMyPe(), CmiPrintf(), Slot::next, printSlot(), and Slot::userSize.

Here is the call graph for this function:

void CmiMemoryCheck ( void   ) 

Definition at line 117 of file memory-leak.C.

static void* setSlot ( Slot s,
int  userSize 
) [static]

Definition at line 124 of file memory-leak.C.

References CmiBacktraceRecord(), Slot::from, Slot::magic, memoryTraceDisabled, n, Slot::next, Slot::prev, Slot_toUser(), and Slot::userSize.

Referenced by cpd_memory_single_pup(), meta_aligned_alloc(), meta_malloc(), meta_memalign(), and meta_posix_memalign().

Here is the call graph for this function:

Here is the caller graph for this function:

static void freeSlot ( Slot s  )  [static]

Definition at line 152 of file memory-leak.C.

References Slot::magic, Slot::next, Slot::prev, and Slot::userSize.

Referenced by cpd_memory_single_pup(), and meta_free().

Here is the caller graph for this function:

static void status ( const char *  msg  )  [static]

Definition at line 166 of file memory-leak.C.

References CmiArgGivingUsage(), CmiMyPe(), and CmiPrintf().

Here is the call graph for this function:

static void meta_init ( char **  argv  )  [static]

Definition at line 171 of file memory-leak.C.

References status.

static void* meta_malloc ( size_t  size  )  [static]

Definition at line 177 of file memory-leak.C.

References mm_malloc, PUP::s, and setSlot().

Here is the call graph for this function:

static void meta_free ( void *  mem  )  [static]

Definition at line 184 of file memory-leak.C.

References CmiAbort(), CmiGetPageSize(), freeSlot(), Slot::magic, mm_free, and PUP::s.

Here is the call graph for this function:

static void* meta_calloc ( size_t  nelem,
size_t  size 
) [static]

Definition at line 206 of file memory-leak.C.

References meta_malloc().

Here is the call graph for this function:

static void meta_cfree ( void *  mem  )  [static]

Definition at line 213 of file memory-leak.C.

References meta_free().

Here is the call graph for this function:

static void* meta_realloc ( void *  oldBuffer,
size_t  newSize 
) [static]

Definition at line 218 of file memory-leak.C.

References meta_free(), meta_malloc(), size, Slot_fmUser(), and Slot::userSize.

Here is the call graph for this function:

static void* meta_memalign ( size_t  align,
size_t  size 
) [static]

Definition at line 234 of file memory-leak.C.

References CmiGetPageSize(), Slot::magic, mm_memalign, PUP::s, and setSlot().

Here is the call graph for this function:

static int meta_posix_memalign ( void **  outptr,
size_t  align,
size_t  size 
) [static]

Definition at line 244 of file memory-leak.C.

References CmiGetPageSize(), Slot::magic, mm_posix_memalign, PUP::s, and setSlot().

Here is the call graph for this function:

static void* meta_aligned_alloc ( size_t  align,
size_t  size 
) [static]

Definition at line 258 of file memory-leak.C.

References CmiGetPageSize(), Slot::magic, mm_aligned_alloc, PUP::s, and setSlot().

Here is the call graph for this function:

static void* meta_valloc ( size_t  size  )  [static]

Definition at line 268 of file memory-leak.C.

References CmiGetPageSize(), and meta_memalign().

Here is the call graph for this function:

static void* meta_pvalloc ( size_t  size  )  [static]

Definition at line 273 of file memory-leak.C.

References CmiGetPageSize(), and meta_memalign().

Here is the call graph for this function:


Variable Documentation

Definition at line 70 of file memory-leak.C.

Definition at line 71 of file memory-leak.C.

int memoryTraceDisabled = 0 [static]

Definition at line 121 of file memory-leak.C.

Referenced by setSlot().


Generated on Mon Sep 21 08:02:21 2020 for Charm++ by  doxygen 1.5.5