diff options
author | John Mainzer <mainzer@hdfgroup.org> | 2006-08-17 22:04:47 (GMT) |
---|---|---|
committer | John Mainzer <mainzer@hdfgroup.org> | 2006-08-17 22:04:47 (GMT) |
commit | e8c1fdd5545240b47ea996be3db3fa9e27fb42a0 (patch) | |
tree | 715a78198ed2ff12fad19582b2c74288a14965e6 /src/H5Cpkg.h | |
parent | db9759bd104901576af5cc821aba2c283a3319ec (diff) | |
download | hdf5-e8c1fdd5545240b47ea996be3db3fa9e27fb42a0.zip hdf5-e8c1fdd5545240b47ea996be3db3fa9e27fb42a0.tar.gz hdf5-e8c1fdd5545240b47ea996be3db3fa9e27fb42a0.tar.bz2 |
[svn-r12595] Modified H5C_insert_entry() to accept the H5C__PIN_ENTRY_FLAG entry
flag, and pin an entry as it is inserted.
The objective is to avoid some function call overhead in fheap.
Also added matching test code in test/cache.c & test/cache_common.c
(also testpar/t_cache.c checked in separately by accident)
h5commit tested
Diffstat (limited to 'src/H5Cpkg.h')
-rw-r--r-- | src/H5Cpkg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Cpkg.h b/src/H5Cpkg.h index 72e775f..7895315 100644 --- a/src/H5Cpkg.h +++ b/src/H5Cpkg.h @@ -545,6 +545,11 @@ * id equal to the array index has been inserted into the * cache in the current epoch. * + * pinned_insertions: Array of int64 of length H5C__MAX_NUM_TYPE_IDS + 1. + * The cells are used to record the number of times an entry + * with type id equal to the array index has been inserted + * pinned into the cache in the current epoch. + * * clears: Array of int64 of length H5C__MAX_NUM_TYPE_IDS + 1. The cells * are used to record the number of times an entry with type * id equal to the array index has been cleared in the current @@ -788,6 +793,7 @@ struct H5C_t int64_t hits[H5C__MAX_NUM_TYPE_IDS + 1]; int64_t misses[H5C__MAX_NUM_TYPE_IDS + 1]; int64_t insertions[H5C__MAX_NUM_TYPE_IDS + 1]; + int64_t pinned_insertions[H5C__MAX_NUM_TYPE_IDS + 1]; int64_t clears[H5C__MAX_NUM_TYPE_IDS + 1]; int64_t flushes[H5C__MAX_NUM_TYPE_IDS + 1]; int64_t evictions[H5C__MAX_NUM_TYPE_IDS + 1]; |