PPL Logo

conv-core/memory.C File Reference

Go to the source code of this file.

Data Structures

struct  CmiMemUsageStruct

Typedefs

typedef CMK_TYPEDEF_UINT8(* CmiMemUsageFn )(void)

Functions

void initialize_memory_wrapper (void)
void * initialize_memory_wrapper_calloc (size_t nelem, size_t size)
void * initialize_memory_wrapper_malloc (size_t size)
void * initialize_memory_wrapper_realloc (void *ptr, size_t size)
void * initialize_memory_wrapper_memalign (size_t align, size_t size)
int initialize_memory_wrapper_posix_memalign (void **memptr, size_t align, size_t size)
void * initialize_memory_wrapper_aligned_alloc (size_t align, size_t size)
void * initialize_memory_wrapper_valloc (size_t size)
void * initialize_memory_wrapper_pvalloc (size_t size)
void initialize_memory_wrapper_free (void *ptr)
void initialize_memory_wrapper_cfree (void *ptr)
static void * fake_malloc (size_t size)
static void * fake_calloc (size_t nelem, size_t size)
static void fake_free (void *ptr)
int CmiMemoryIs (int flag)
void CmiOutOfMemoryInit (void)
void CmiOutOfMemory (int nBytes)
static void * meta_malloc (size_t)
static void * meta_realloc (void *, size_t)
static void * meta_memalign (size_t, size_t)
static void meta_free (void *)
static void * meta_malloc_hook (size_t s, const void *c)
static void * meta_realloc_hook (void *p, size_t s, const void *c)
static void * meta_memalign_hook (size_t s1, size_t s2, const void *c)
static void meta_free_hook (void *p, const void *c)
static void my_init_hook (void)
void * malloc (size_t size) CMK_THROW
void free (void *ptr) CMK_THROW
void * calloc (size_t nelem, size_t size) CMK_THROW
void cfree (void *ptr) CMK_THROW
void * realloc (void *ptr, size_t size) CMK_THROW
CLINKAGE void * memalign (size_t align, size_t size) CMK_THROW
CLINKAGE int posix_memalign (void **outptr, size_t align, size_t size) CMK_THROW
CLINKAGE void * aligned_alloc (size_t align, size_t size) CMK_THROW
void * valloc (size_t size) CMK_THROW
CLINKAGE void * pvalloc (size_t size) CMK_THROW
void CmiMemoryInit (char **argv)
CLINKAGE void * malloc_reentrant (size_t)
CLINKAGE void free_reentrant (void *)
int sbrk (int s)
static INLINE CMK_TYPEDEF_UINT8 MemusageMstats (void)
static INLINE CMK_TYPEDEF_UINT8 MemusageSbrk (void)
static INLINE CMK_TYPEDEF_UINT8 MemusageProcSelfStat (void)
static INLINE CMK_TYPEDEF_UINT8 MemusageMallinfo (void)
static INLINE CMK_TYPEDEF_UINT8 MemusagePS (void)
static INLINE CMK_TYPEDEF_UINT8 MemusageWindows (void)
static INLINE CMK_TYPEDEF_UINT8 MemusageBGQ (void)
CMK_TYPEDEF_UINT8 CmiMemoryUsage (void)
 Return number of bytes currently allocated, if possible.
const char * CmiMemoryUsageReporter (void)
CMK_TYPEDEF_UINT8 CmiMaxMemoryUsageR (void)
CMK_TYPEDEF_UINT8 CmiMaxMemoryUsage (void)
 Return number of maximum number of bytes allocated since the last call to CmiResetMaxMemory(), if possible.
void CmiResetMaxMemory (void)
 Reset the mechanism that records the highest seen (high watermark) memory usage.
CMK_TYPEDEF_UINT8 CmiMinMemoryUsage (void)
void CmiResetMinMemory (void)
static void meta_init (char **argv)
static void * meta_calloc (size_t nelem, size_t size)
static void meta_cfree (void *mem)
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)
CLINKAGE void * malloc_nomigrate (size_t)
CLINKAGE void free_nomigrate (void *)
CmiIsomallocBlockListCmiIsomallocBlockListActivate (CmiIsomallocBlockList *l)
CmiIsomallocBlockListCmiIsomallocBlockListCurrent (void)
void CmiEnableIsomalloc (void)
void CmiDisableIsomalloc (void)
void CmiMemoryMark (void)
void CmiMemoryMarkBlock (void *blk)
void CmiMemorySweep (const char *where)
void CmiMemoryCheck (void)
void memory_preallocate_hack (void)
void CpdSetInitializeMemory (int v)
size_t cpd_memory_length (void *lenParam)
 Returns the number of total blocks of memory allocated.
void cpd_memory_pup (void *itemParam, pup_er p, CpdListItemsRequest *req)
void cpd_memory_leak (void *itemParam, pup_er p, CpdListItemsRequest *req)
void check_memory_leaks (LeakSearchInfo *i)
size_t cpd_memory_getLength (void *lenParam)
void cpd_memory_get (void *itemParam, pup_er p, CpdListItemsRequest *req)
void CpdMemoryMarkClean (char *msg)
void setProtection (char *mem, char *ptr, int len, int flag)
void setMemoryTypeChare (void *ptr)
void setMemoryTypeMessage (void *ptr)
void CpdSystemEnter (void)
void CpdSystemExit (void)
void CpdResetMemory (void)
void CpdCheckMemory (void)
int get_memory_allocated_user_total (void)
void * MemoryToSlot (void *ptr)
int Slot_ChareOwner (void *s)
int Slot_AllocatedSize (void *s)
int Slot_StackTrace (void *s, void ***stack)
int setMemoryChareIDFromPtr (void *ptr)
void setMemoryChareID (int id)
void setMemoryOwnedBy (void *ptr, int id)
void * CmiMallocAligned (const size_t size, const unsigned int alignment)
void CmiFreeAligned (void *ptr)
CLINKAGE void * __libc_memalign (size_t alignment, size_t bytes)
CLINKAGE void * __default_morecore (ptrdiff_t)
CLINKAGE int mallopt (int param_number, int value) CMK_THROW
CLINKAGE void __malloc_fork_lock_parent (void)
CLINKAGE void __malloc_fork_unlock_parent (void)
CLINKAGE void __malloc_fork_unlock_child (void)
char * strdup (const char *str)
char * strndup (const char *str, size_t n)

Variables

void * memory_stack_top
int cpdInSystem = 1
void *(* mm_malloc )(size_t) = initialize_memory_wrapper_malloc
void *(* mm_calloc )(size_t, size_t) = initialize_memory_wrapper_calloc
void *(* mm_realloc )(void *, size_t) = initialize_memory_wrapper_realloc
void *(* mm_memalign )(size_t, size_t) = initialize_memory_wrapper_memalign
int(* mm_posix_memalign )(void **, size_t, size_t) = initialize_memory_wrapper_posix_memalign
void *(* mm_aligned_alloc )(size_t, size_t) = initialize_memory_wrapper_aligned_alloc
void *(* mm_valloc )(size_t) = initialize_memory_wrapper_valloc
void *(* mm_pvalloc )(size_t) = initialize_memory_wrapper_pvalloc
void(* mm_free )(void *) = initialize_memory_wrapper_free
void(* mm_cfree )(void *) = initialize_memory_wrapper_cfree
struct mallinfo(* mm_mallinfo )(void) = NULL
static char fake_malloc_buffer [1024]
static char * fake_malloc_buffer_pos = fake_malloc_buffer
char initialize_memory_wrapper_status
CMK_TYPEDEF_UINT8 _memory_allocated = 0
CMK_TYPEDEF_UINT8 _memory_allocated_max = 0
CMK_TYPEDEF_UINT8 _memory_allocated_min = 0
static int rank_holding_CmiMemLock = -1
static int CmiMemoryIs_flag = 0
static char * memory_lifeRaft = NULL
 memory_lifeRaft is a very small heap-allocated region.
int memory_status_info = 0
int memory_chare_id = 0
static void *(* old_malloc_hook )(size_t, const void *)
static void *(* old_realloc_hook )(void *, size_t, const void *)
static void *(* old_memalign_hook )(size_t, size_t, const void *)
static void(* old_free_hook )(void *, const void *)
void(* __MALLOC_HOOK_VOLATILE )(void) = my_init_hook
void(* __malloc_initialize_hook )(void) = my_init_hook
static int skip_mallinfo = 0
static int MemusageInited = 0
static uintptr_t MemusageInitSbrkval = 0
struct CmiMemUsageStruct memtest_order []
static int CmiMemoryInited = 0


Function Documentation

int @342::sbrk ( int  s  )  [static]

Definition at line 429 of file memory.C.


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