PPL Logo

conv-core/memory-gnu-arena.c File Reference

Go to the source code of this file.

Data Structures

struct  _heap_info

Typedefs

typedef struct _heap_info heap_info

Functions

static __malloc_ptr_t
save_malloc_hook 
__MALLOC_P ((size_t __size, const __malloc_ptr_t))
static __malloc_ptr_t
save_memalign_hook 
__MALLOC_P ((size_t __align, size_t __size, const __malloc_ptr_t))
static void save_free_hook __MALLOC_P ((__malloc_ptr_t __ptr, const __malloc_ptr_t))
static Void_t * malloc_atfork (size_t sz, const Void_t *caller)
static void free_atfork (Void_t *mem, const Void_t *caller)
static void ptmalloc_lock_all __MALLOC_P ((void))
static char *internal_function next_env_entry (char ***position)
void __libc_malloc_pthread_startup (bool first_time)
 thread_atfork_static (ptmalloc_lock_all, ptmalloc_unlock_all,\ptmalloc_unlock_all2) static void dump_heap(heap_info *heap) dump_heap(heap) heap_info *heap

Variables

static tsd_key_t arena_key
static mutex_t list_lock
static int stat_n_heaps
static unsigned long arena_mem
int __malloc_initialized = -1
static Void_t * save_arena
char ** _environ
 top_pad
long diff
size_t pad
size_t size


Typedef Documentation

typedef struct _heap_info heap_info


Function Documentation

static __malloc_ptr_t save_malloc_hook __MALLOC_P ( (size_t __size, const __malloc_ptr_t)   )  [static]

static __malloc_ptr_t save_memalign_hook __MALLOC_P ( (size_t __align, size_t __size, const __malloc_ptr_t)   )  [static]

static void save_free_hook __MALLOC_P ( (__malloc_ptr_t __ptr, const __malloc_ptr_t)   )  [static]

static Void_t* malloc_atfork ( size_t  sz,
const Void_t *  caller 
) [static]

static void free_atfork ( Void_t *  mem,
const Void_t *  caller 
) [static]

Definition at line 184 of file memory-gnu-arena.c.

References _int_free(), _heap_info::ar_ptr, arena_key, munmap_chunk(), malloc_state::mutex, and p.

Referenced by __MALLOC_P().

static void ptmalloc_init __MALLOC_P ( (void)   )  [static]

static char* internal_function next_env_entry ( char ***  position  )  [static]

Definition at line 300 of file memory-gnu-arena.c.

void __libc_malloc_pthread_startup ( bool  first_time  ) 

Definition at line 353 of file memory-gnu-arena.c.

References free_starter(), malloc_starter(), and memalign_starter().

thread_atfork_static ( ptmalloc_lock_all  ,
ptmalloc_unlock_all  ,
ptmalloc_unlock_all2 
)


Variable Documentation

tsd_key_t arena_key [static]

Definition at line 63 of file memory-gnu-arena.c.

Referenced by __MALLOC_P(), free_atfork(), and malloc_atfork().

mutex_t list_lock [static]

Definition at line 64 of file memory-gnu-arena.c.

Referenced by __MALLOC_P(), and malloc_atfork().

int stat_n_heaps [static]

Definition at line 67 of file memory-gnu-arena.c.

unsigned long arena_mem [static]

Definition at line 74 of file memory-gnu-arena.c.

Definition at line 77 of file memory-gnu-arena.c.

Void_t* save_arena [static]

Definition at line 146 of file memory-gnu-arena.c.

char** _environ

Definition at line 561 of file memory-gnu-arena.c.

long diff

size_t pad

Definition at line 654 of file memory-gnu-arena.c.

Referenced by _CmiMultipleSend(), and infi_freeMultipleSend().

size_t size

Definition at line 711 of file memory-gnu-arena.c.

Referenced by _allocEnv(), _allocNewChare(), _initCharm(), CpdList_arrayElements::add(), CpdList_object::add(), add_to_bucket(), ADIOI_Exch_and_write(), ADIOI_Fill_send_buffer(), ADIOI_Fill_user_buffer(), ADIOI_GEN_ReadStrided(), ADIOI_GEN_ReadStrided_naive(), ADIOI_GEN_ReadStridedColl(), ADIOI_GEN_WriteStrided(), ADIOI_GEN_WriteStridedColl(), ADIOI_HFS_Fcntl(), ADIOI_NFS_Fcntl(), ADIOI_NFS_ReadStrided(), ADIOI_NFS_WriteStrided(), ADIOI_NTFS_Fcntl(), ADIOI_PIOFS_Fcntl(), ADIOI_PIOFS_WriteStrided(), ADIOI_PVFS_Fcntl(), ADIOI_PVFS_WriteStrided(), ADIOI_PVFS_WriteStridedListIO(), ADIOI_Read_and_exch(), ADIOI_SFS_Fcntl(), ADIOI_UFS_Fcntl(), ADIOI_XFS_Aligned_Mem_File_Read(), ADIOI_XFS_Aligned_Mem_File_Write(), ADIOI_XFS_ReadContig(), ADIOI_XFS_WriteContig(), envelope::alloc(), AMPI_Allgather(), AMPI_Allgatherv(), AMPI_Alltoall(), AMPI_Alltoall2(), AMPI_Alltoallv(), ampi_endFunc(), AMPI_Gather(), AMPI_Gatherv(), AMPI_Group_size(), AMPI_Iallgather(), AMPI_Ialltoall(), AMPI_Reduce_scatter(), AMPI_Scan(), AMPI_Scatter(), AMPI_Scatterv(), AMPI_Testall(), AMPI_Waitall(), ComlibManager::ArraySend(), bg_dcopy128(), BGLTorusManager::BGLTorusManager(), ComlibManager::bracketedReceiveNewPeList(), ampi::cartCreatePhase1(), checkRank(), checksum_update(), CkAllocBuffer(), CkCopyMsg(), CkCreateLocalGroup(), CkPupMainChareData(), CkPupMessage(), CkQ< char * >::CkQ(), TempoArray::ckTempoAllReduce(), TempoArray::ckTempoReduce(), CMI_VMI_CmiAlloc(), CMI_VMI_CmiFree(), CMI_VMI_Connection_Handler(), CmiGetDynamicReductionRemote(), CmiIsomallocBlockListPup(), CmiReductionHandleDynamicRequest(), CmiSendMessagePxshm(), ImageData::CombineImageDataSize(), CkSparseContiguousReducer< T >::contribute(), ArrayElement::contribute2(), CPathEltnoToIndices(), CPathIndicesToEltno(), CPathMakeArray(), CPathMsgDecodeReduction(), CPathSend(), cpd_memory_single_pup(), CpdPupMessage(), Cell3D::create_children(), NormalRealSlabArray::createPlans(), CtgGlobalList::CtgGlobalList(), ampi::delesend(), do_load(), Cell::doIterations(), FEM_AdaptL::edge_contraction_help(), emptyRecvBuf(), ComlibManager::endIteration(), FEM_chunk::exchangeGhostLists(), FEMchunk::exchangeGhostLists(), PeTable::ExtractAndPackAll(), FEM_add_element(), FEM_REF_INIT(), FEM_remove_element(), FEM_remove_node_local(), FIFO_Expand(), FORTRAN_AS_C(), AmrUserData::fragment(), FTN_NAME(), controlPointManager::gatherAll(), controlPointManager::gatherIdleTime(), controlPointManager::gatherMemoryUsage(), CpdPythonGroup::getArray(), getAvailMemory(), getDataSegHeader(), FEM_Mesh::getGlobalElem(), CkMessageDetailReplay::getNext(), FEM_MUtil::getRemoteIdx(), ampi::graphCreatePhase1(), BroadcastStrategy::handleHypercube(), BroadcastStrategy::handleTree(), heap_heapify(), FEM_MUtil::IdxlListTest(), infi_CmiFree(), initInfiCmiChunkPools(), ArrayElement::inmem_checkpoint(), PipeBroadcastConverse::insertMessage(), CtgGlobalList::install(), CtgGlobalList::install_var(), receiver::irecv(), receiver::isend(), CkMemCheckPT::isMaster(), isofreefn(), IsSwapPossWithPe(), KillOnAllSigs(), mempool_free(), mesh_data(), meta_realloc(), MPI_Type_create_subarray(), MPISendOneMsg(), NLBStatsMsg::NLBStatsMsg(), ParFUM_SA_Init(), StateStack::pop(), StateStack::popN(), ConvComlibManager::printDiagnostics(), ComlibManager::printDiagnostics(), chunk::printSurface(), CkMessageDetailRecorder::process(), processEvent(), processMessage(), ProcessMessage(), CkSequence< T >::pup(), Cell::pup(), win_obj::pup(), MlogEntry::pup(), PUPbytes(), pupChare(), pupMsg(), pupReadonly(), CtgGlobalList::read(), CtgGlobalList::read_var(), Cell::refine(), refine(), FEM_MUtil::removeNodeAll(), redistributor2D::resizeGranules(), searchVec(), ComlibManager::sendBufferedMessages(), LineFFTArray::sendFFTMessages(), sendMlogLocation(), SendMsgBuf(), CkMemCheckPT::sendProcData(), threadCollideMgr::sendRemote(), StateStack::set(), CkMulticastMgr::setup(), TraceSummaryBOC::startSumOnly(), StatTableReduction(), StreamingHandlerFn(), traceCommonInit(), Cell::treeSetup(), try_largest_mmap_region(), PeTable::UnpackAndInsertAll(), LBDB::useMem(), vecPrint(), FEM_MUtil::verifyIdxlListRemote(), write_stdio_duplicate(), CountLogPool::writeSts(), and Cell::~Cell().


Generated on Sat May 26 08:08:07 2012 for Charm++ by  doxygen 1.5.5