summaryrefslogtreecommitdiffstats
path: root/src/H5Ocache.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-10 19:41:37 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-10 19:41:37 (GMT)
commit176f59f0f4aaadf3c5fe8637b9478a627b43c076 (patch)
tree843b808166b800639adafe0f50c616cf6e2dc940 /src/H5Ocache.c
parent14dcb6db33f88011c3499d439c53890ab09d1ba2 (diff)
downloadhdf5-176f59f0f4aaadf3c5fe8637b9478a627b43c076.zip
hdf5-176f59f0f4aaadf3c5fe8637b9478a627b43c076.tar.gz
hdf5-176f59f0f4aaadf3c5fe8637b9478a627b43c076.tar.bz2
[svn-r12738] Description:
Tweak down some of the static array definitions for new & re-loaded object header data structures, to reduce memory use in common cases. Tested on: Linux/32 2.6 (chicago)
Diffstat (limited to 'src/H5Ocache.c')
-rw-r--r--src/H5Ocache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ocache.c b/src/H5Ocache.c
index 3ef502b..23f714a 100644
--- a/src/H5Ocache.c
+++ b/src/H5Ocache.c
@@ -209,7 +209,7 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1,
UINT32DECODE(p, chunk_size);
/* build the message array */
- oh->alloc_nmesgs = MAX(H5O_NMESGS, nmesgs);
+ oh->alloc_nmesgs = nmesgs;
if (NULL==(oh->mesg=H5FL_SEQ_CALLOC(H5O_mesg_t,(size_t)oh->alloc_nmesgs)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");