summaryrefslogtreecommitdiffstats
path: root/src/H5HGcache.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-07-21 19:39:40 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-07-21 19:39:40 (GMT)
commit0c8e622e1acfe4dbf0d8dd25a514a231c08d388d (patch)
tree19388a211f93c4fd6135cad4ad9d25f41def7ab6 /src/H5HGcache.c
parentf383c2a622990b3164c45ac09dc9e8f2f64fe7dd (diff)
downloadhdf5-0c8e622e1acfe4dbf0d8dd25a514a231c08d388d.zip
hdf5-0c8e622e1acfe4dbf0d8dd25a514a231c08d388d.tar.gz
hdf5-0c8e622e1acfe4dbf0d8dd25a514a231c08d388d.tar.bz2
[svn-r17210] Description:
Bring r17157:17209 from trunk to revise_chunks branch. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.5.7 (amazon) in debug mode Mac OS X/32 10.5.7 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
Diffstat (limited to 'src/H5HGcache.c')
-rw-r--r--src/H5HGcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5HGcache.c b/src/H5HGcache.c
index 747c41e..22374ce 100644
--- a/src/H5HGcache.c
+++ b/src/H5HGcache.c
@@ -244,6 +244,8 @@ H5HG_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * udata1,
else
heap->nused = 1;
+ HDassert(max_idx < heap->nused);
+
/*
* Add the new heap to the CWFS list, removing some other entry if
* necessary to make room. We remove the right-most entry that has less