Go to the source code of this file.
CpvStaticDeclare | ( | CmiIsomallocBlockList * | , | |
isomalloc_blocklist | ||||
) |
CpvStaticDeclare | ( | CmiIsomallocBlockList * | , | |
pushed_blocklist | ||||
) |
void CmiDisableIsomalloc | ( | void | ) |
Definition at line 32 of file memory-isomalloc.C.
Referenced by TraceBluegene::bgPrint(), and FTN_NAME().
void CmiEnableIsomalloc | ( | void | ) |
Definition at line 38 of file memory-isomalloc.C.
Referenced by TraceBluegene::bgPrint(), and FTN_NAME().
static void meta_init | ( | char ** | argv | ) | [static] |
Definition at line 62 of file memory-isomalloc.C.
References _sync_iso, _sync_iso_warned, CmiMemoryIs_flag, CmiMyPe(), CmiMyRank(), isomalloc_thread, and meta_inited.
Referenced by CmiMemoryInit(), and cpd_memory_single_pup().
static void* meta_malloc | ( | size_t | size | ) | [static] |
Definition at line 81 of file memory-isomalloc.C.
References CmiIsFortranLibraryCall(), CmiIsomallocBlockListMalloc(), CmiThreadIs(), isomalloc_thread, meta_inited, and mm_malloc.
static void meta_free | ( | void * | mem | ) | [static] |
Definition at line 109 of file memory-isomalloc.C.
References CmiIsomallocBlockListFree(), CmiIsomallocInRange(), and mm_free.
Referenced by cpd_memory_single_pup(), free(), meta_cfree(), meta_free_hook(), and meta_realloc().
Definition at line 121 of file memory-isomalloc.C.
References meta_malloc().
static void meta_cfree | ( | void * | mem | ) | [static] |
Definition at line 128 of file memory-isomalloc.C.
References meta_free().
Referenced by cfree(), and cpd_memory_single_pup().
static void* meta_realloc | ( | void * | oldBuffer, | |
size_t | newSize | |||
) | [static] |
Definition at line 133 of file memory-isomalloc.C.
References CmiIsomallocInRange(), CmiIsomallocLength(), meta_free(), meta_malloc(), mm_realloc, and size.
Definition at line 155 of file memory-isomalloc.C.
References CmiIsFortranLibraryCall(), CmiIsomallocBlockListMallocAlign(), and mm_memalign.
Definition at line 175 of file memory-isomalloc.C.
References CmiIsFortranLibraryCall(), CmiIsomallocBlockListMallocAlign(), and mm_posix_memalign.
Definition at line 195 of file memory-isomalloc.C.
References CmiIsFortranLibraryCall(), CmiIsomallocBlockListMallocAlign(), and mm_aligned_alloc.
static void* meta_valloc | ( | size_t | size | ) | [static] |
Definition at line 215 of file memory-isomalloc.C.
References CmiGetPageSize(), and meta_memalign().
static void* meta_pvalloc | ( | size_t | size | ) | [static] |
Definition at line 220 of file memory-isomalloc.C.
References CmiGetPageSize(), and meta_memalign().
CmiIsomallocBlockList* CmiIsomallocBlockListActivate | ( | CmiIsomallocBlockList * | l | ) |
Definition at line 247 of file memory-isomalloc.C.
Referenced by TCharm::activateThread(), and TCharm::deactivateThread().
CmiIsomallocBlockList* CmiIsomallocBlockListCurrent | ( | void | ) |
Definition at line 255 of file memory-isomalloc.C.
CMK_THREADLOCAL int isomalloc_thread = 0 [static] |
make sure isomalloc is only called in pthreads that is spawned by Charm++.
It is not safe to call isomalloc in system spawned pthreads for example mpich pthreads, or aio pthreads. Use the following TLS variable to distinguish those pthreads. when set to 1, the current pthreads is allowed to call isomalloc.
Definition at line 51 of file memory-isomalloc.C.
Referenced by meta_init(), and meta_malloc().
int meta_inited = 0 [static] |
Definition at line 78 of file isomalloc.C.
Referenced by CmiIsomallocInit(), init_ranges(), and meta_init().