f44bd9e067
both mmap and munmap), adjusting the configure script so that the component will only be activated on systems that use ptmalloc2 in the first place -- ie, Linux * Remove the malloc_hooks component - it became an unworkable solution once threads and such were considered. * Remove malloc_interpose component - it never worked quite right and was not going to be able to intercept malloc, so it wasn't going to be useful for OMPI's purposes. * Update tests a little bit to match recent memory hooks api issues - still needs a bit of work. This commit was SVN r8381.
48 строки
1.5 KiB
C
48 строки
1.5 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include "opal/mca/memory/memory.h"
|
|
|
|
const opal_memory_base_component_1_0_0_t mca_memory_ptmalloc2_component = {
|
|
/* First, the mca_component_t struct containing meta information
|
|
about the component itself */
|
|
{
|
|
/* Indicate that we are a memory v1.0.0 component (which also
|
|
implies a specific MCA version) */
|
|
OPAL_MEMORY_BASE_VERSION_1_0_0,
|
|
|
|
/* Component name and version */
|
|
"ptmalloc2",
|
|
OPAL_MAJOR_VERSION,
|
|
OPAL_MINOR_VERSION,
|
|
OPAL_RELEASE_VERSION,
|
|
|
|
/* Component open and close functions */
|
|
NULL,
|
|
NULL
|
|
},
|
|
|
|
/* Next the MCA v1.0.0 component meta data */
|
|
{
|
|
/* Whether the component is checkpointable or not */
|
|
true
|
|
},
|
|
};
|