diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-29 19:48:53 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-29 19:48:53 (GMT) |
commit | 09c503b1d843cef974c55157e6a1a99ab498bba9 (patch) | |
tree | cd3bd2bc0a49a49f4542f6b81b8b6cdf8d4ef4b6 /src/H5Dcontig.c | |
parent | 9b43a9f61441daf31f2fa41ac000672ed90d9c12 (diff) | |
download | hdf5-09c503b1d843cef974c55157e6a1a99ab498bba9.zip hdf5-09c503b1d843cef974c55157e6a1a99ab498bba9.tar.gz hdf5-09c503b1d843cef974c55157e6a1a99ab498bba9.tar.bz2 |
[svn-r13812] Description:
Change back to clearing memory buffers by default, but give users option
to disable this, for performance reasons (--disable-clear-file-buffers).
Tested on:
Mac OS X/32 10.4.9 (amazon)
FreeBSD/32 6.2 (duty)
Linux/32 2.6 (kagiso)
Diffstat (limited to 'src/H5Dcontig.c')
-rw-r--r-- | src/H5Dcontig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c index c8991bc..b8d65ec 100644 --- a/src/H5Dcontig.c +++ b/src/H5Dcontig.c @@ -751,10 +751,10 @@ H5D_contig_writevv(const H5D_io_info_t *io_info, /* Allocate room for the data sieve buffer */ if (NULL==(dset_contig->sieve_buf=H5FL_BLK_MALLOC(sieve_buf,dset_contig->sieve_buf_size))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") -#ifdef H5_USING_PURIFY +#ifdef H5_CLEAR_MEMORY if(dset_contig->sieve_size > size) HDmemset(dset_contig->sieve_buf + size, 0, (dset_contig->sieve_size - size)); -#endif /* H5_USING_PURIFY */ +#endif /* H5_CLEAR_MEMORY */ /* Determine the new sieve buffer size & location */ dset_contig->sieve_loc=addr; |