summaryrefslogtreecommitdiffstats
path: root/src/H5MM.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-01-06 17:04:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-01-06 17:04:15 (GMT)
commit4bf63f78e71aed68ba946dbfda545d657a9a94b5 (patch)
treeb8719f2de9a5e2621f4bc96aeb675e32a1f76019 /src/H5MM.c
parent48f7ad2df147d92851c6246155712f430a9f39f0 (diff)
downloadhdf5-4bf63f78e71aed68ba946dbfda545d657a9a94b5.zip
hdf5-4bf63f78e71aed68ba946dbfda545d657a9a94b5.tar.gz
hdf5-4bf63f78e71aed68ba946dbfda545d657a9a94b5.tar.bz2
[svn-r28815] Description:
Add internal routine to sanity check all blocks allocated through H5MM interface. Tested on: Linux/32 2.6.x (jam) w/serial Linux/64 2.6.x (mayll) w/serial MacOSX/64 10.11.2 (amazon) w/serial & parallel
Diffstat (limited to 'src/H5MM.c')
-rw-r--r--src/H5MM.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/H5MM.c b/src/H5MM.c
index b6e77eb..fd9a4a9 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -187,6 +187,31 @@ H5MM__sanity_check(void *mem)
/*-------------------------------------------------------------------------
+ * Function: H5MM_sanity_check_all
+ *
+ * Purpose: Sanity check all current memory allocations.
+ *
+ * Return: N/A (void)
+ *
+ * Programmer: Quincey Koziol
+ * Jan 5 2016
+ *
+ *-------------------------------------------------------------------------
+ */
+void
+H5MM_sanity_check_all(void)
+{
+ H5MM_block_t *curr;
+
+ curr = H5MM_block_head_s.next;
+ while(curr != &H5MM_block_head_s) {
+ H5MM__sanity_check_block(curr);
+ curr = curr->next;
+ } /* end while */
+} /* end H5MM_sanity_check_all() */
+
+
+/*-------------------------------------------------------------------------
* Function: H5MM_final_sanity_check
*
* Purpose: Final sanity checks on memory allocation.