summaryrefslogtreecommitdiffstats
path: root/src/H5ACmpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5ACmpio.c')
-rw-r--r--src/H5ACmpio.c272
1 files changed, 136 insertions, 136 deletions
diff --git a/src/H5ACmpio.c b/src/H5ACmpio.c
index 0ef5955..34c408a 100644
--- a/src/H5ACmpio.c
+++ b/src/H5ACmpio.c
@@ -143,9 +143,9 @@ H5AC__set_sync_point_done_callback(H5C_t *cache_ptr, H5AC_sync_point_done_cb_t s
FUNC_ENTER_PACKAGE_NOERR
/* Sanity checks */
- HDassert(cache_ptr);
+ assert(cache_ptr);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
+ assert(aux_ptr != NULL);
aux_ptr->sync_point_done = sync_point_done;
@@ -174,9 +174,9 @@ H5AC__set_write_done_callback(H5C_t *cache_ptr, H5AC_write_done_cb_t write_done)
FUNC_ENTER_PACKAGE_NOERR
/* Sanity checks */
- HDassert(cache_ptr);
+ assert(cache_ptr);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
+ assert(aux_ptr != NULL);
aux_ptr->write_done = write_done;
@@ -211,11 +211,11 @@ H5AC_add_candidate(H5AC_t *cache_ptr, haddr_t addr)
FUNC_ENTER_NOAPI(FAIL)
/* Sanity checks */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
- HDassert(aux_ptr->candidate_slist_ptr != NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr->candidate_slist_ptr != NULL);
/* Construct an entry for the supplied address, and insert
* it into the candidate slist.
@@ -272,16 +272,16 @@ H5AC__broadcast_candidate_list(H5AC_t *cache_ptr, unsigned *num_entries_ptr, had
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->mpi_rank == 0);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
- HDassert(aux_ptr->candidate_slist_ptr != NULL);
- HDassert(num_entries_ptr != NULL);
- HDassert(*num_entries_ptr == 0);
- HDassert(haddr_buf_ptr_ptr != NULL);
- HDassert(*haddr_buf_ptr_ptr == NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->mpi_rank == 0);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr->candidate_slist_ptr != NULL);
+ assert(num_entries_ptr != NULL);
+ assert(*num_entries_ptr == 0);
+ assert(haddr_buf_ptr_ptr != NULL);
+ assert(*haddr_buf_ptr_ptr == NULL);
/* First broadcast the number of entries in the list so that the
* receivers can set up buffers to receive them. If there aren't
@@ -303,8 +303,8 @@ H5AC__broadcast_candidate_list(H5AC_t *cache_ptr, unsigned *num_entries_ptr, had
/* Push an error, but still participate in following MPI_Bcast */
HDONE_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "Can't construct candidate buffer.")
}
- HDassert(chk_num_entries == num_entries);
- HDassert(haddr_buf_ptr != NULL);
+ assert(chk_num_entries == num_entries);
+ assert(haddr_buf_ptr != NULL);
/* Now broadcast the list of candidate entries */
buf_size = sizeof(haddr_t) * num_entries;
@@ -351,8 +351,8 @@ H5AC__broadcast_clean_list_cb(void *_item, void H5_ATTR_UNUSED *_key, void *_uda
FUNC_ENTER_PACKAGE_NOERR
/* Sanity checks */
- HDassert(slist_entry_ptr);
- HDassert(udata);
+ assert(slist_entry_ptr);
+ assert(udata);
/* Store the entry's address in the buffer */
addr = slist_entry_ptr->addr;
@@ -404,11 +404,11 @@ H5AC__broadcast_clean_list(H5AC_t *cache_ptr)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->mpi_rank == 0);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->mpi_rank == 0);
+ assert(aux_ptr->c_slist_ptr != NULL);
/* First broadcast the number of entries in the list so that the
* receives can set up a buffer to receive them. If there aren't
@@ -490,17 +490,17 @@ H5AC__construct_candidate_list(H5AC_t *cache_ptr, H5AC_aux_t H5_ATTR_NDEBUG_UNUS
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(cache_ptr != NULL);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
- HDassert((sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_CACHE) || (aux_ptr->mpi_rank == 0));
- HDassert(aux_ptr->d_slist_ptr != NULL);
- HDassert(aux_ptr->c_slist_ptr != NULL);
- HDassert(H5SL_count(aux_ptr->c_slist_ptr) == 0);
- HDassert(aux_ptr->candidate_slist_ptr != NULL);
- HDassert(H5SL_count(aux_ptr->candidate_slist_ptr) == 0);
- HDassert((sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_TO_MIN_CLEAN) ||
- (sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_CACHE));
+ assert(cache_ptr != NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert((sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_CACHE) || (aux_ptr->mpi_rank == 0));
+ assert(aux_ptr->d_slist_ptr != NULL);
+ assert(aux_ptr->c_slist_ptr != NULL);
+ assert(H5SL_count(aux_ptr->c_slist_ptr) == 0);
+ assert(aux_ptr->candidate_slist_ptr != NULL);
+ assert(H5SL_count(aux_ptr->candidate_slist_ptr) == 0);
+ assert((sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_TO_MIN_CLEAN) ||
+ (sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_CACHE));
switch (sync_point_op) {
case H5AC_SYNC_POINT_OP__FLUSH_TO_MIN_CLEAN:
@@ -545,8 +545,8 @@ H5AC__copy_candidate_list_to_buffer_cb(void *_item, void H5_ATTR_UNUSED *_key, v
FUNC_ENTER_PACKAGE_NOERR
/* Sanity checks */
- HDassert(slist_entry_ptr);
- HDassert(udata);
+ assert(slist_entry_ptr);
+ assert(udata);
/* Store the entry's address in the buffer */
udata->addr_buf_ptr[udata->u] = slist_entry_ptr->addr;
@@ -603,16 +603,16 @@ H5AC__copy_candidate_list_to_buffer(const H5AC_t *cache_ptr, unsigned *num_entri
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
- HDassert(aux_ptr->candidate_slist_ptr != NULL);
- HDassert(H5SL_count(aux_ptr->candidate_slist_ptr) > 0);
- HDassert(num_entries_ptr != NULL);
- HDassert(*num_entries_ptr == 0);
- HDassert(haddr_buf_ptr_ptr != NULL);
- HDassert(*haddr_buf_ptr_ptr == NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr->candidate_slist_ptr != NULL);
+ assert(H5SL_count(aux_ptr->candidate_slist_ptr) > 0);
+ assert(num_entries_ptr != NULL);
+ assert(*num_entries_ptr == 0);
+ assert(haddr_buf_ptr_ptr != NULL);
+ assert(*haddr_buf_ptr_ptr == NULL);
num_entries = (unsigned)H5SL_count(aux_ptr->candidate_slist_ptr);
@@ -674,15 +674,15 @@ H5AC__log_deleted_entry(const H5AC_info_t *entry_ptr)
FUNC_ENTER_PACKAGE_NOERR
/* Sanity checks */
- HDassert(entry_ptr);
+ assert(entry_ptr);
addr = entry_ptr->addr;
cache_ptr = entry_ptr->cache_ptr;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->mpi_rank == 0);
- HDassert(aux_ptr->d_slist_ptr != NULL);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->mpi_rank == 0);
+ assert(aux_ptr->d_slist_ptr != NULL);
+ assert(aux_ptr->c_slist_ptr != NULL);
/* if the entry appears in the dirtied entry slist, remove it. */
if (NULL != (slist_entry_ptr = (H5AC_slist_entry_t *)H5SL_remove(aux_ptr->d_slist_ptr, (void *)(&addr))))
@@ -726,20 +726,20 @@ H5AC__log_dirtied_entry(const H5AC_info_t *entry_ptr)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(entry_ptr);
- HDassert(entry_ptr->is_dirty == FALSE);
+ assert(entry_ptr);
+ assert(entry_ptr->is_dirty == FALSE);
cache_ptr = entry_ptr->cache_ptr;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
+ assert(aux_ptr != NULL);
if (aux_ptr->mpi_rank == 0) {
H5AC_slist_entry_t *slist_entry_ptr;
haddr_t addr = entry_ptr->addr;
/* Sanity checks */
- HDassert(aux_ptr->d_slist_ptr != NULL);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr->d_slist_ptr != NULL);
+ assert(aux_ptr->c_slist_ptr != NULL);
if (NULL == H5SL_search(aux_ptr->d_slist_ptr, (void *)(&addr))) {
/* insert the address of the entry in the dirty entry list, and
@@ -802,20 +802,20 @@ H5AC__log_cleaned_entry(const H5AC_info_t *entry_ptr)
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
- HDassert(entry_ptr);
- HDassert(entry_ptr->is_dirty == FALSE);
+ assert(entry_ptr);
+ assert(entry_ptr->is_dirty == FALSE);
cache_ptr = entry_ptr->cache_ptr;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
+ assert(aux_ptr != NULL);
if (aux_ptr->mpi_rank == 0) {
H5AC_slist_entry_t *slist_entry_ptr;
haddr_t addr = entry_ptr->addr;
/* Sanity checks */
- HDassert(aux_ptr->d_slist_ptr != NULL);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr->d_slist_ptr != NULL);
+ assert(aux_ptr->c_slist_ptr != NULL);
/* Remove it from both the cleaned list and the dirtied list. */
if (NULL !=
@@ -865,11 +865,11 @@ H5AC__log_flushed_entry(H5C_t *cache_ptr, haddr_t addr, hbool_t was_dirty, unsig
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->mpi_rank == 0);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->mpi_rank == 0);
+ assert(aux_ptr->c_slist_ptr != NULL);
/* Set local flags */
cleared = ((flags & H5C__FLUSH_CLEAR_ONLY_FLAG) != 0);
@@ -931,17 +931,17 @@ H5AC__log_inserted_entry(const H5AC_info_t *entry_ptr)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(entry_ptr);
+ assert(entry_ptr);
cache_ptr = entry_ptr->cache_ptr;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
+ assert(aux_ptr != NULL);
if (aux_ptr->mpi_rank == 0) {
H5AC_slist_entry_t *slist_entry_ptr;
- HDassert(aux_ptr->d_slist_ptr != NULL);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr->d_slist_ptr != NULL);
+ assert(aux_ptr->c_slist_ptr != NULL);
/* Entry to insert should not be in dirty list currently */
if (NULL != H5SL_search(aux_ptr->d_slist_ptr, (const void *)(&entry_ptr->addr)))
@@ -1031,12 +1031,12 @@ H5AC__log_moved_entry(const H5F_t *f, haddr_t old_addr, haddr_t new_addr)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f);
- HDassert(f->shared);
+ assert(f);
+ assert(f->shared);
cache_ptr = (H5AC_t *)f->shared->cache;
- HDassert(cache_ptr);
+ assert(cache_ptr);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
+ assert(aux_ptr != NULL);
/* get entry status, size, etc here */
if (H5C_get_entry_status(f, old_addr, &entry_size, &entry_in_cache, &entry_dirty, NULL, NULL, NULL, NULL,
@@ -1048,8 +1048,8 @@ H5AC__log_moved_entry(const H5F_t *f, haddr_t old_addr, haddr_t new_addr)
if (aux_ptr->mpi_rank == 0) {
H5AC_slist_entry_t *slist_entry_ptr;
- HDassert(aux_ptr->d_slist_ptr != NULL);
- HDassert(aux_ptr->c_slist_ptr != NULL);
+ assert(aux_ptr->d_slist_ptr != NULL);
+ assert(aux_ptr->c_slist_ptr != NULL);
/* if the entry appears in the cleaned entry slist, under its old
* address, remove it.
@@ -1072,7 +1072,7 @@ H5AC__log_moved_entry(const H5F_t *f, haddr_t old_addr, haddr_t new_addr)
* list under its old address implies that it must have
* been clean to start with.
*/
- HDassert(!entry_dirty);
+ assert(!entry_dirty);
if (NULL == (slist_entry_ptr = H5FL_MALLOC(H5AC_slist_entry_t)))
HGOTO_ERROR(H5E_CACHE, H5E_CANTALLOC, FAIL, "Can't allocate dirty slist entry .")
slist_entry_ptr->addr = new_addr;
@@ -1210,12 +1210,12 @@ H5AC__propagate_and_apply_candidate_list(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
/* to prevent "messages from the future" we must synchronize all
* processes before we write any entries.
@@ -1227,7 +1227,7 @@ H5AC__propagate_and_apply_candidate_list(H5F_t *f)
if (H5AC__broadcast_candidate_list(cache_ptr, &num_candidates, &candidates_list_ptr) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "Can't broadcast candidate slist.")
- HDassert(H5SL_count(aux_ptr->candidate_slist_ptr) == 0);
+ assert(H5SL_count(aux_ptr->candidate_slist_ptr) == 0);
} /* end if */
else {
if (H5AC__receive_candidate_list(cache_ptr, &num_candidates, &candidates_list_ptr) < 0)
@@ -1372,17 +1372,17 @@ H5AC__propagate_flushed_and_still_clean_entries_list(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY);
if (aux_ptr->mpi_rank == 0) {
if (H5AC__broadcast_clean_list(cache_ptr) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "Can't broadcast clean slist.")
- HDassert(H5SL_count(aux_ptr->c_slist_ptr) == 0);
+ assert(H5SL_count(aux_ptr->c_slist_ptr) == 0);
} /* end if */
else if (H5AC__receive_and_apply_clean_list(f) < 0)
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "Can't receive and/or process clean slist broadcast.")
@@ -1422,10 +1422,10 @@ H5AC__receive_haddr_list(MPI_Comm mpi_comm, unsigned *num_entries_ptr, haddr_t *
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(num_entries_ptr != NULL);
- HDassert(*num_entries_ptr == 0);
- HDassert(haddr_buf_ptr_ptr != NULL);
- HDassert(*haddr_buf_ptr_ptr == NULL);
+ assert(num_entries_ptr != NULL);
+ assert(*num_entries_ptr == 0);
+ assert(haddr_buf_ptr_ptr != NULL);
+ assert(*haddr_buf_ptr_ptr == NULL);
/* First receive the number of entries in the list so that we
* can set up a buffer to receive them. If there aren't
@@ -1494,12 +1494,12 @@ H5AC__receive_and_apply_clean_list(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity check */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->mpi_rank != 0);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->mpi_rank != 0);
/* Retrieve the clean list from process 0 */
if (H5AC__receive_haddr_list(aux_ptr->mpi_comm, &num_entries, &haddr_buf_ptr) < 0)
@@ -1553,15 +1553,15 @@ H5AC__receive_candidate_list(const H5AC_t *cache_ptr, unsigned *num_entries_ptr,
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->mpi_rank != 0);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
- HDassert(num_entries_ptr != NULL);
- HDassert(*num_entries_ptr == 0);
- HDassert(haddr_buf_ptr_ptr != NULL);
- HDassert(*haddr_buf_ptr_ptr == NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->mpi_rank != 0);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(num_entries_ptr != NULL);
+ assert(*num_entries_ptr == 0);
+ assert(haddr_buf_ptr_ptr != NULL);
+ assert(*haddr_buf_ptr_ptr == NULL);
/* Retrieve the candidate list from process 0 */
if (H5AC__receive_haddr_list(aux_ptr->mpi_comm, num_entries_ptr, haddr_buf_ptr_ptr) < 0)
@@ -1633,12 +1633,12 @@ H5AC__rsp__dist_md_write__flush(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
/* first construct the candidate list -- initially, this will be in the
* form of a skip list. We will convert it later.
@@ -1776,12 +1776,12 @@ H5AC__rsp__dist_md_write__flush_to_min_clean(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
/* Query if evictions are allowed */
if (H5C_get_evictions_enabled((const H5C_t *)cache_ptr, &evictions_enabled) < 0)
@@ -1854,12 +1854,12 @@ H5AC__rsp__p0_only__flush(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY);
/* To prevent "messages from the future" we must
* synchronize all processes before we start the flush.
@@ -1964,12 +1964,12 @@ H5AC__rsp__p0_only__flush_to_min_clean(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__PROCESS_0_ONLY);
/* Query if evictions are allowed */
if (H5C_get_evictions_enabled((const H5C_t *)cache_ptr, &evictions_enabled) < 0)
@@ -2077,13 +2077,13 @@ H5AC__run_sync_point(H5F_t *f, int sync_point_op)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f != NULL);
+ assert(f != NULL);
cache_ptr = f->shared->cache;
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert((sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_TO_MIN_CLEAN) ||
- (sync_point_op == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED));
+ assert(aux_ptr != NULL);
+ assert((sync_point_op == H5AC_SYNC_POINT_OP__FLUSH_TO_MIN_CLEAN) ||
+ (sync_point_op == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED));
#ifdef H5AC_DEBUG_DIRTY_BYTES_CREATION
HDfprintf(stdout, "%d:%s...:%u: (u/uu/i/iu/m/mu) = %zu/%u/%zu/%u/%zu/%u\n", aux_ptr->mpi_rank,
@@ -2207,13 +2207,13 @@ H5AC__tidy_cache_0_lists(H5AC_t *cache_ptr, unsigned num_candidates, haddr_t *ca
FUNC_ENTER_PACKAGE_NOERR
/* Sanity checks */
- HDassert(cache_ptr != NULL);
+ assert(cache_ptr != NULL);
aux_ptr = (H5AC_aux_t *)H5C_get_aux_ptr(cache_ptr);
- HDassert(aux_ptr != NULL);
- HDassert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
- HDassert(aux_ptr->mpi_rank == 0);
- HDassert(num_candidates > 0);
- HDassert(candidates_list_ptr != NULL);
+ assert(aux_ptr != NULL);
+ assert(aux_ptr->metadata_write_strategy == H5AC_METADATA_WRITE_STRATEGY__DISTRIBUTED);
+ assert(aux_ptr->mpi_rank == 0);
+ assert(num_candidates > 0);
+ assert(candidates_list_ptr != NULL);
/* clean up dirtied and flushed and still clean lists by removing
* all entries on the candidate list. Cleared entries should
@@ -2266,8 +2266,8 @@ H5AC__flush_entries(H5F_t *f)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(f);
- HDassert(f->shared->cache);
+ assert(f);
+ assert(f->shared->cache);
/* Check if we have >1 ranks */
if (H5C_get_aux_ptr(f->shared->cache))