Commit a4aa0675 authored by Rob Latham's avatar Rob Latham
Browse files

Increase number of finalizers



Lisandro Dalcin <dalcinl@gmail.com> reports that mpi4py's test suite
invokes MPIR_Add_finalize() 33 times.  It's been 6.5 years since we
doubled it, so bump it up once again.

Closes: #2272
Signed-off-by: default avatarJunchao Zhang <jczhang@mcs.anl.gov>
parent 62829ab8
......@@ -65,7 +65,7 @@ typedef struct Finalize_func_t {
} Finalize_func_t;
/* When full debugging is enabled, each MPI handle type has a finalize handler
installed to detect unfreed handles. */
#define MAX_FINALIZE_FUNC 32
#define MAX_FINALIZE_FUNC 64
static Finalize_func_t fstack[MAX_FINALIZE_FUNC];
static int fstack_sp = 0;
static int fstack_max_priority = 0;
......@@ -76,7 +76,8 @@ void MPIR_Add_finalize( int (*f)( void * ), void *extra_data, int priority )
if (fstack_sp >= MAX_FINALIZE_FUNC) {
/* This is a little tricky. We may want to check the state of
MPIR_Process.mpich_state to decide how to signal the error */
(void)MPIU_Internal_error_printf( "overflow in finalize stack!\n" );
(void)MPIU_Internal_error_printf( "overflow in finalize stack! "
"Is MAX_FINALIZE_FUNC too small?\n" );
if (OPA_load_int(&MPIR_Process.mpich_state) == MPICH_IN_INIT ||
OPA_load_int(&MPIR_Process.mpich_state) == MPICH_POST_INIT)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment