summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-05-13 15:15:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-05-13 15:15:01 (GMT)
commitc9e13d9dae6a2061c4efbc2c0684d670b0f49944 (patch)
treefe584e948475f2286e44a21f94b28a5ae3b6a7d7 /testpar
parentea30da9e877ff6842a08d2d204f2191cccab0a1f (diff)
downloadhdf5-c9e13d9dae6a2061c4efbc2c0684d670b0f49944.zip
hdf5-c9e13d9dae6a2061c4efbc2c0684d670b0f49944.tar.gz
hdf5-c9e13d9dae6a2061c4efbc2c0684d670b0f49944.tar.bz2
[svn-r18790] Description:
Remove the size parameter from H5[A]C_unprotect() and the H5[A]C__SIZE_CHANGED_FLAG, switching all clients & tests over to using H5[A]C_resize_entry appropriately. Tested on: Mac OS X/32 10.6.3 (amazon) w/debug & prod Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_cache.c50
1 files changed, 9 insertions, 41 deletions
diff --git a/testpar/t_cache.c b/testpar/t_cache.c
index 2a6a58f..a546904 100644
--- a/testpar/t_cache.c
+++ b/testpar/t_cache.c
@@ -2101,7 +2101,6 @@ datum_free_icr(void * thing)
HDassert( ( entry_ptr->header.size == entry_ptr->len ) ||
( entry_ptr->header.size == entry_ptr->local_len ) );
- HDassert( !(entry_ptr->dirty) );
HDassert( !(entry_ptr->header.is_dirty) );
HDassert( !(entry_ptr->global_pinned) );
HDassert( !(entry_ptr->local_pinned) );
@@ -2752,7 +2751,7 @@ mark_entry_dirty(H5C_t * cache_ptr,
entry_ptr = &(data[idx]);
- HDassert ( entry_ptr->global_pinned );
+ HDassert ( entry_ptr->locked || entry_ptr->global_pinned );
HDassert ( ! (entry_ptr->local_pinned) );
(entry_ptr->ver)++;
@@ -2769,7 +2768,7 @@ mark_entry_dirty(H5C_t * cache_ptr,
world_mpi_rank, fcn_name);
}
}
- else
+ else if ( ! ( entry_ptr->locked ) )
{
global_dirty_pins++;
}
@@ -3604,8 +3603,7 @@ unlock_entry(H5C_t * cache_ptr,
}
result = H5AC_unprotect(file_ptr, H5P_DATASET_XFER_DEFAULT, &(types[0]),
- entry_ptr->base_addr, entry_ptr->local_len,
- (void *)(&(entry_ptr->header)), flags);
+ entry_ptr->base_addr, (void *)(&(entry_ptr->header)), flags);
if ( ( result < 0 ) ||
( entry_ptr->header.type != &(types[0]) ) ||
@@ -4130,15 +4128,10 @@ smoke_check_1(void)
fflush(stdout);
}
- /* verify that all instance of datum are back where the started
- * and are clean.
- */
+ /* verify that all instance of datum are back where the started. */
for ( i = 0; i < NUM_DATA_ENTRIES; i++ )
- {
HDassert( data_index[i] == i );
- HDassert( ! (data[i].dirty) );
- }
if ( show_progress ) { /* 9 */
HDfprintf(stdout, "%d:%s - %0d -- success = %d\n",
@@ -4359,15 +4352,10 @@ smoke_check_2(void)
}
}
- /* verify that all instance of datum are back where the started
- * and are clean.
- */
+ /* verify that all instance of datum are back where the started. */
for ( i = 0; i < NUM_DATA_ENTRIES; i++ )
- {
HDassert( data_index[i] == i );
- HDassert( ! (data[i].dirty) );
- }
/* compose the done message */
mssg.req = DONE_REQ_CODE;
@@ -4679,15 +4667,10 @@ smoke_check_3(void)
}
}
- /* verify that all instances of datum are back where the started
- * and are clean.
- */
+ /* verify that all instances of datum are back where the started. */
for ( i = 0; i < NUM_DATA_ENTRIES; i++ )
- {
HDassert( data_index[i] == i );
- HDassert( ! (data[i].dirty) );
- }
/* compose the done message */
mssg.req = DONE_REQ_CODE;
@@ -4995,15 +4978,10 @@ smoke_check_4(void)
}
}
- /* verify that all instance of datum are back where the started
- * and are clean.
- */
+ /* verify that all instance of datum are back where the started. */
for ( i = 0; i < NUM_DATA_ENTRIES; i++ )
- {
HDassert( data_index[i] == i );
- HDassert( ! (data[i].dirty) );
- }
/* compose the done message */
mssg.req = DONE_REQ_CODE;
@@ -5286,15 +5264,10 @@ smoke_check_5(void)
fflush(stdout);
}
- /* verify that all instance of datum are back where the started
- * and are clean.
- */
+ /* verify that all instance of datum are back where the started. */
for ( i = 0; i < NUM_DATA_ENTRIES; i++ )
- {
HDassert( data_index[i] == i );
- HDassert( ! (data[i].dirty) );
- }
if ( show_progress ) { /* 9 */
HDfprintf(stdout, "%d:%s - %0d -- success = %d\n",
@@ -5598,15 +5571,10 @@ trace_file_check(void)
}
}
- /* verify that all instance of datum are back where the started
- * and are clean.
- */
+ /* verify that all instance of datum are back where the started. */
for ( i = 0; i < NUM_DATA_ENTRIES; i++ )
- {
HDassert( data_index[i] == i );
- HDassert( ! (data[i].dirty) );
- }
/* compose the done message */
mssg.req = DONE_REQ_CODE;