Merge pull request #2701 from rhc54/topic/dvmfix
Be a tad more cautious before releasing objects when running in DVM mode
Этот коммит содержится в:
Коммит
d8ed7b55a3
@ -13,7 +13,7 @@
|
|||||||
* Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2011-2013 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
|
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
|
||||||
* Copyright (c) 2017 Research Organization for Information Science
|
* Copyright (c) 2017 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
@ -854,7 +854,9 @@ static int rte_finalize(void)
|
|||||||
|
|
||||||
/* release the job hash table */
|
/* release the job hash table */
|
||||||
OPAL_HASH_TABLE_FOREACH(key, uint32, jdata, orte_job_data) {
|
OPAL_HASH_TABLE_FOREACH(key, uint32, jdata, orte_job_data) {
|
||||||
OBJ_RELEASE(jdata);
|
if (NULL != jdata) {
|
||||||
|
OBJ_RELEASE(jdata);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
OBJ_RELEASE(orte_job_data);
|
OBJ_RELEASE(orte_job_data);
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
|
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
|
||||||
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
|
||||||
* Copyright (c) 2015-2016 Intel, Inc. All rights reserved.
|
* Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
|
||||||
* Copyright (c) 2015-2017 Research Organization for Information Science
|
* Copyright (c) 2015-2017 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
@ -90,8 +90,10 @@ static int orte_iof_base_close(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!ORTE_PROC_IS_DAEMON) {
|
if (!ORTE_PROC_IS_DAEMON) {
|
||||||
OBJ_RELEASE(orte_iof_base.iof_write_stdout);
|
if (NULL != orte_iof_base.iof_write_stdout) {
|
||||||
if (!orte_xml_output) {
|
OBJ_RELEASE(orte_iof_base.iof_write_stdout);
|
||||||
|
}
|
||||||
|
if (!orte_xml_output && NULL != orte_iof_base.iof_write_stderr) {
|
||||||
OBJ_RELEASE(orte_iof_base.iof_write_stderr);
|
OBJ_RELEASE(orte_iof_base.iof_write_stderr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
|
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2014 Intel, Inc. All rights reserved
|
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
|
||||||
* Copyright (c) 2017 Research Organization for Information Science
|
* Copyright (c) 2017 Research Organization for Information Science
|
||||||
* and Technology (RIST). All rights reserved.
|
* and Technology (RIST). All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
@ -189,8 +189,6 @@ static int init(void)
|
|||||||
|
|
||||||
static int finalize(void)
|
static int finalize(void)
|
||||||
{
|
{
|
||||||
opal_list_item_t *item;
|
|
||||||
|
|
||||||
/* cleanup the proc state machine */
|
/* cleanup the proc state machine */
|
||||||
OPAL_LIST_DESTRUCT(&orte_proc_states);
|
OPAL_LIST_DESTRUCT(&orte_proc_states);
|
||||||
/* cleanup the job state machine */
|
/* cleanup the job state machine */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user