summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-05-06 23:02:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-05-06 23:02:27 (GMT)
commite053c6f84f6ee6f1fea6cbe74269467cce94e4d5 (patch)
tree18068879af310c1ede6a04b99a292bfe8d34b592 /testpar
parent772d09112253a0d86f93a551299c2601aebddcca (diff)
downloadhdf5-e053c6f84f6ee6f1fea6cbe74269467cce94e4d5.zip
hdf5-e053c6f84f6ee6f1fea6cbe74269467cce94e4d5.tar.gz
hdf5-e053c6f84f6ee6f1fea6cbe74269467cce94e4d5.tar.bz2
[svn-r18737] Description:
Switch H5AC_resize_pinned_entry() to work on protected entries as well, and rename to H5AC_resize_entry() Tested on: Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode Mac OS X/32 10.6.3 (amazon) in debug mode Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_cache.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c
index aee92af..2a6a58f 100644
--- a/testpar/t_cache.c
+++ b/testpar/t_cache.c
@@ -3080,7 +3080,6 @@ resize_entry(H5C_t * cache_ptr,
entry_ptr = &(data[idx]);
HDassert( ((entry_ptr->header).type)->id == DATUM_ENTRY_TYPE );
- HDassert( !(entry_ptr->header.is_protected) );
HDassert( !(entry_ptr->locked) );
HDassert( ( entry_ptr->global_pinned ) &&
( ! entry_ptr->local_pinned ) );
@@ -3089,13 +3088,13 @@ resize_entry(H5C_t * cache_ptr,
HDassert( new_size > 0 );
HDassert( new_size <= entry_ptr->len );
- result = H5AC_resize_pinned_entry((void *)entry_ptr, new_size);
+ result = H5AC_resize_entry((void *)entry_ptr, new_size);
if ( result < 0 ) {
nerrors++;
if ( verbose ) {
- HDfprintf(stdout, "%d:%s: H5AC_resize_pinned_entry() failed.\n",
+ HDfprintf(stdout, "%d:%s: H5AC_resize_entry() failed.\n",
world_mpi_rank, fcn_name);
}
@@ -5071,7 +5070,7 @@ smoke_check_4(void)
*
* JRM -- 7/12/06
* Added test code for H5AC_expunge_entry() and
- * H5AC_resize_pinned_entry().
+ * H5AC_resize_entry().
*
*****************************************************************************/
@@ -5252,10 +5251,7 @@ smoke_check_5(void)
resize_entry(cache_ptr, file_ptr, i, data[i].len / 2);
}
- if ( i % 4 == 0 )
- mark_entry_dirty(cache_ptr, file_ptr, i);
- else
- mark_entry_dirty(cache_ptr, file_ptr, i);
+ mark_entry_dirty(cache_ptr, file_ptr, i);
if ( i % 8 <= 4 ) {
@@ -5387,7 +5383,7 @@ smoke_check_5(void)
* - H5AC_unprotect()
* - H5AC_set_cache_auto_resize_config()
* - H5AC_expunge_entry()
- * - H5AC_resize_pinned_entry()
+ * - H5AC_resize_entry()
*
* This test is skipped if H5_METADATA_TRACE_FILE is undefined.
*
@@ -5401,7 +5397,7 @@ smoke_check_5(void)
*
* JRM -- 7/11/06
* Updated for H5AC_expunge_entry() and
- * H5AC_resize_pinned_entry().
+ * H5AC_resize_entry().
*
* JRM -- 2/14/08
* Updated for changes in H5AC_set_cache_auto_resize_config
@@ -5437,8 +5433,8 @@ trace_file_check(void)
"H5AC_pin_protected_entry 0x404 0\n",
"H5AC_unprotect 0x404 16 4 0 0\n",
"H5AC_mark_entry_dirty 0x404 0\n",
- "H5AC_resize_pinned_entry 0x404 2 0\n",
- "H5AC_resize_pinned_entry 0x404 4 0\n",
+ "H5AC_resize_entry 0x404 2 0\n",
+ "H5AC_resize_entry 0x404 4 0\n",
"H5AC_unpin_entry 0x404 0\n",
"H5AC_move_entry 0x400 0x8e65 16 0\n",
"H5AC_move_entry 0x8e65 0x400 16 0\n",