summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-05-04 20:51:26 (GMT)
committerGitHub <noreply@github.com>2021-05-04 20:51:26 (GMT)
commitdbe7204085d46188414fd9d9e0dde48afcf30f28 (patch)
tree1a46a7ff0f36556da8ef551c1d31540f0e4e1a15 /src/H5T.c
parentc7d45c205e78f141df76578ed72243d4445ac675 (diff)
downloadhdf5-dbe7204085d46188414fd9d9e0dde48afcf30f28.zip
hdf5-dbe7204085d46188414fd9d9e0dde48afcf30f28.tar.gz
hdf5-dbe7204085d46188414fd9d9e0dde48afcf30f28.tar.bz2
Hash table replacement for skip lists in ID code (#600)
* Committing clang-format changes * Brings over hash table code from Bitbucket * Can be switched between skip list and hash table implementation with H5_USE_ID_HASH_TABLE #define * Not yet updated to use iterate-safe delete * Fixes a warning and changes where the problematic test is commented out. * Adds mark-and-sweep flags and members * Final fixes for hash table ID code * Removes skip list ID code * Committing clang-format changes * Formatted source * Adds a comment about the mark-and-sweep scheme. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 4b1d483..666c33d 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -1512,7 +1512,8 @@ H5T__unlock_cb(void *_dt, hid_t H5_ATTR_UNUSED id, void *_udata)
FUNC_ENTER_STATIC_NOERR
- HDassert(dt && dt->shared);
+ HDassert(dt);
+ HDassert(dt->shared);
if (H5T_STATE_IMMUTABLE == dt->shared->state) {
dt->shared->state = H5T_STATE_RDONLY;