mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r16060] Description:
Remove unused field from direct block struct. Tested on: Mac OS X/32 10.5.5 (amazon) in debug mode Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
This commit is contained in:
parent
e50725342b
commit
05e559c9ec
@ -1261,7 +1261,6 @@ H5HF_cache_dblock_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void *_size,
|
||||
/* Set block's internal information */
|
||||
dblock->size = *size;
|
||||
dblock->file_size = 0;
|
||||
dblock->blk_off_size = H5HF_SIZEOF_OFFSET_LEN(dblock->size);
|
||||
|
||||
/* Allocate block buffer */
|
||||
/* XXX: Change to using free-list factories */
|
||||
|
@ -440,9 +440,6 @@ H5HF_dblock_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream,
|
||||
HDfprintf(stream, "%*s%-*s %Zu\n", indent, "", fwidth,
|
||||
"Size of block header:",
|
||||
blk_prefix_size);
|
||||
HDfprintf(stream, "%*s%-*s %Zu\n", indent, "", fwidth,
|
||||
"Size of block offsets:",
|
||||
dblock->blk_off_size);
|
||||
|
||||
/* Allocate space for the free space markers */
|
||||
if(NULL == (marker = (uint8_t *)H5MM_calloc(dblock->size)))
|
||||
|
@ -138,7 +138,6 @@ H5HF_man_dblock_create(hid_t dxpl_id, H5HF_hdr_t *hdr, H5HF_indirect_t *par_iblo
|
||||
dblock->size = hdr->man_dtable.cparam.start_block_size;
|
||||
} /* end else */
|
||||
dblock->file_size = 0;
|
||||
dblock->blk_off_size = H5HF_SIZEOF_OFFSET_LEN(dblock->size);
|
||||
free_space = dblock->size - H5HF_MAN_ABS_DIRECT_OVERHEAD(hdr);
|
||||
|
||||
/* Allocate buffer for block */
|
||||
|
@ -404,7 +404,6 @@ typedef struct H5HF_direct_t {
|
||||
unsigned par_entry; /* Entry in parent's table */
|
||||
size_t size; /* Size of direct block */
|
||||
hsize_t file_size; /* Size of direct block in file (only valid when block's space is being freed) */
|
||||
unsigned blk_off_size; /* Size of offsets in the block */
|
||||
uint8_t *blk; /* Pointer to buffer containing block data */
|
||||
|
||||
/* Stored values */
|
||||
|
@ -121,7 +121,7 @@ H5HF_space_start(H5HF_hdr_t *hdr, hid_t dxpl_id, hbool_t may_create)
|
||||
if(H5F_addr_defined(hdr->fs_addr)) {
|
||||
/* Open an existing free space structure for the heap */
|
||||
if(NULL == (hdr->fspace = H5FS_open(hdr->f, dxpl_id, hdr->fs_addr,
|
||||
NELMTS(classes), classes, hdr, H5HF_FSPACE_THRHD_DEF, H5HF_FSPACE_ALIGN_DEF)))
|
||||
NELMTS(classes), classes, hdr, (hsize_t)H5HF_FSPACE_THRHD_DEF, (hsize_t)H5HF_FSPACE_ALIGN_DEF)))
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't initialize free space info")
|
||||
} /* end if */
|
||||
else {
|
||||
@ -138,7 +138,7 @@ H5HF_space_start(H5HF_hdr_t *hdr, hid_t dxpl_id, hbool_t may_create)
|
||||
|
||||
/* Create the free space structure for the heap */
|
||||
if(NULL == (hdr->fspace = H5FS_create(hdr->f, dxpl_id, &hdr->fs_addr,
|
||||
&fs_create, NELMTS(classes), classes, hdr, H5HF_FSPACE_THRHD_DEF, H5HF_FSPACE_ALIGN_DEF)))
|
||||
&fs_create, NELMTS(classes), classes, hdr, (hsize_t)H5HF_FSPACE_THRHD_DEF, (hsize_t)H5HF_FSPACE_ALIGN_DEF)))
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTINIT, FAIL, "can't initialize free space info")
|
||||
HDassert(H5F_addr_defined(hdr->fs_addr));
|
||||
} /* end if */
|
||||
|
Loading…
Reference in New Issue
Block a user