summaryrefslogtreecommitdiffstats
path: root/src/H5Cprefetched.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 20:43:30 (GMT)
committerGitHub <noreply@github.com>2023-07-27 20:43:30 (GMT)
commit1e91d96fa02466ffe451319bdac1005f84dc7993 (patch)
tree4de04ef502c313dfd766497b20235188761146c0 /src/H5Cprefetched.c
parent95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff)
downloadhdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'src/H5Cprefetched.c')
-rw-r--r--src/H5Cprefetched.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/H5Cprefetched.c b/src/H5Cprefetched.c
index 8ce9419..ccaccad 100644
--- a/src/H5Cprefetched.c
+++ b/src/H5Cprefetched.c
@@ -210,9 +210,9 @@ H5C__prefetched_entry_notify(H5C_notify_action_t action, void *_thing)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(entry_ptr);
- HDassert(entry_ptr->magic == H5C__H5C_CACHE_ENTRY_T_MAGIC);
- HDassert(entry_ptr->prefetched);
+ assert(entry_ptr);
+ assert(entry_ptr->magic == H5C__H5C_CACHE_ENTRY_T_MAGIC);
+ assert(entry_ptr->prefetched);
switch (action) {
case H5C_NOTIFY_ACTION_AFTER_INSERT:
@@ -232,11 +232,11 @@ H5C__prefetched_entry_notify(H5C_notify_action_t action, void *_thing)
H5C_cache_entry_t *parent_ptr;
/* Sanity checks */
- HDassert(entry_ptr->flush_dep_parent);
+ assert(entry_ptr->flush_dep_parent);
parent_ptr = entry_ptr->flush_dep_parent[u];
- HDassert(parent_ptr);
- HDassert(parent_ptr->magic == H5C__H5C_CACHE_ENTRY_T_MAGIC);
- HDassert(parent_ptr->flush_dep_nchildren > 0);
+ assert(parent_ptr);
+ assert(parent_ptr->magic == H5C__H5C_CACHE_ENTRY_T_MAGIC);
+ assert(parent_ptr->flush_dep_nchildren > 0);
/* Destroy flush dependency with flush dependency parent */
if (H5C_destroy_flush_dependency(parent_ptr, entry_ptr) < 0)
@@ -249,7 +249,7 @@ H5C__prefetched_entry_notify(H5C_notify_action_t action, void *_thing)
* field to reflect the destruction of the flush
* dependency relationship.
*/
- HDassert(parent_ptr->fd_child_count > 0);
+ assert(parent_ptr->fd_child_count > 0);
(parent_ptr->fd_child_count)--;
} /* end if */
} /* end for */
@@ -288,17 +288,17 @@ H5C__prefetched_entry_free_icr(void *_thing)
FUNC_ENTER_PACKAGE
/* Sanity checks */
- HDassert(entry_ptr);
- HDassert(entry_ptr->magic == H5C__H5C_CACHE_ENTRY_T_BAD_MAGIC);
- HDassert(entry_ptr->prefetched);
+ assert(entry_ptr);
+ assert(entry_ptr->magic == H5C__H5C_CACHE_ENTRY_T_BAD_MAGIC);
+ assert(entry_ptr->prefetched);
/* Release array for flush dependency parent addresses */
if (entry_ptr->fd_parent_addrs != NULL) {
- HDassert(entry_ptr->fd_parent_count > 0);
+ assert(entry_ptr->fd_parent_count > 0);
entry_ptr->fd_parent_addrs = (haddr_t *)H5MM_xfree((void *)entry_ptr->fd_parent_addrs);
} /* end if */
else
- HDassert(entry_ptr->fd_parent_count == 0);
+ assert(entry_ptr->fd_parent_count == 0);
if (entry_ptr->image_ptr != NULL)
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "prefetched entry image buffer still attached?")