HDF5  1.12.0
H5FLprivate.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF5. The full HDF5 copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /*-------------------------------------------------------------------------
15  *
16  * Created: H5FLprivate.h
17  * Mar 23 2000
18  * Quincey Koziol <koziol@ncsa.uiuc.edu>
19  *
20  * Purpose: Private non-prototype header.
21  *
22  * Modifications:
23  *
24  *-------------------------------------------------------------------------
25  */
26 #ifndef _H5FLprivate_H
27 #define _H5FLprivate_H
28 
29 /* Public headers needed by this file */
30 #ifdef LATER
31 #include "H5FLpublic.h" /*API prototypes */
32 #endif /* LATER */
33 
34 /* Private headers needed by this file */
35 
36 /* Macros for turning off free lists in the library */
37 /*#define H5_NO_FREE_LISTS*/
38 #if defined H5_NO_FREE_LISTS || defined H5_USING_MEMCHECKER
39 #define H5_NO_REG_FREE_LISTS
40 #define H5_NO_ARR_FREE_LISTS
41 #define H5_NO_SEQ_FREE_LISTS
42 #define H5_NO_BLK_FREE_LISTS
43 #define H5_NO_FAC_FREE_LISTS
44 #endif /* H5_NO_FREE_LISTS */
45 
46 /* Macro to track location where block was allocated from */
47 /* Uncomment next line to turn on tracking, but don't leave it on after
48  * debugging is done because of the extra overhead it imposes.
49  */
50 /* NOTE: This hasn't been extended to all the free-list allocation routines
51  * yet. -QAK
52  */
53 /* #define H5FL_TRACK */
54 #ifdef H5FL_TRACK
55 /* Macro for inclusion in the free list allocation calls */
56 #define H5FL_TRACK_INFO ,__FILE__, FUNC, __LINE__
57 
58 /* Macro for inclusion in internal free list allocation calls */
59 #define H5FL_TRACK_INFO_INT ,call_file, call_func, call_line
60 
61 /* Macro for inclusion in the free list allocation parameters */
62 #define H5FL_TRACK_PARAMS ,const char *call_file, const char *call_func, int call_line
63 
64 /* Forward declarations for structure fields */
65 struct H5CS_t;
66 
67 /* Tracking information for each block */
68 typedef struct H5FL_track_t {
69  struct H5CS_t *stack; /* Function stack */
70  char *file; /* Name of file containing calling function */
71  char *func; /* Name of calling function */
72  int line; /* Line # within calling function */
73  struct H5FL_track_t *next; /* Pointer to next tracking block */
74  struct H5FL_track_t *prev; /* Pointer to previous tracking block */
75 } H5FL_track_t;
76 
77 /* Macro for size of tracking information */
78 #define H5FL_TRACK_SIZE sizeof(H5FL_track_t)
79 
80 #else /* H5FL_TRACK */
81 #define H5FL_TRACK_INFO
82 #define H5FL_TRACK_INFO_INT
83 #define H5FL_TRACK_PARAMS
84 #define H5FL_TRACK_SIZE 0
85 #endif /* H5FL_TRACK */
86 
87 /*
88  * Private datatypes.
89  */
90 
91 /* Data structure to store each block in free list */
92 typedef struct H5FL_reg_node_t {
93  struct H5FL_reg_node_t *next; /* Pointer to next block in free list */
95 
96 /* Data structure for free list of blocks */
97 typedef struct H5FL_reg_head_t {
98  hbool_t init; /* Whether the free list has been initialized */
99  unsigned allocated; /* Number of blocks allocated */
100  unsigned onlist; /* Number of blocks on free list */
101  const char *name; /* Name of the type */
102  size_t size; /* Size of the blocks in the list */
103  H5FL_reg_node_t *list; /* List of free blocks */
105 
106 /*
107  * Macros for defining & using free lists for a type
108  */
109 #define H5FL_REG_NAME(t) H5_##t##_reg_free_list
110 #ifndef H5_NO_REG_FREE_LISTS
111 /* Common macros for H5FL_DEFINE & H5FL_DEFINE_STATIC */
112 #define H5FL_DEFINE_COMMON(t) H5FL_reg_head_t H5FL_REG_NAME(t)={0,0,0,#t,sizeof(t),NULL}
113 
114 /* Declare a free list to manage objects of type 't' */
115 #define H5FL_DEFINE(t) H5_DLL H5FL_DEFINE_COMMON(t)
116 
117 /* Reference a free list for type 't' defined in another file */
118 #define H5FL_EXTERN(t) H5_DLLVAR H5FL_reg_head_t H5FL_REG_NAME(t)
119 
120 /* Declare a static free list to manage objects of type 't' */
121 #define H5FL_DEFINE_STATIC(t) static H5FL_DEFINE_COMMON(t)
122 
123 /* Allocate an object of type 't' */
124 #define H5FL_MALLOC(t) (t *)H5FL_reg_malloc(&(H5FL_REG_NAME(t)) H5FL_TRACK_INFO)
125 
126 /* Allocate an object of type 't' and clear it to all zeros */
127 #define H5FL_CALLOC(t) (t *)H5FL_reg_calloc(&(H5FL_REG_NAME(t)) H5FL_TRACK_INFO)
128 
129 /* Free an object of type 't' */
130 #define H5FL_FREE(t,obj) (t *)H5FL_reg_free(&(H5FL_REG_NAME(t)),obj)
131 
132 /* Re-allocating an object of type 't' is not defined, because these free-lists
133  * only support fixed sized types, like structs, etc..
134  */
135 
136 #else /* H5_NO_REG_FREE_LISTS */
137 #include "H5MMprivate.h"
138 /* Common macro for H5FL_DEFINE & H5FL_DEFINE_STATIC */
139 #define H5FL_DEFINE_COMMON(t) int H5_ATTR_UNUSED H5FL_REG_NAME(t)
140 
141 #define H5FL_DEFINE(t) H5_DLL H5FL_DEFINE_COMMON(t)
142 #define H5FL_EXTERN(t) H5_DLLVAR H5FL_DEFINE_COMMON(t)
143 #define H5FL_DEFINE_STATIC(t) static H5FL_DEFINE_COMMON(t)
144 #define H5FL_MALLOC(t) (t *)H5MM_malloc(sizeof(t))
145 #define H5FL_CALLOC(t) (t *)H5MM_calloc(sizeof(t))
146 #define H5FL_FREE(t,obj) (t *)H5MM_xfree(obj)
147 #endif /* H5_NO_REG_FREE_LISTS */
148 
149 /* Data structure to store information about each block allocated */
150 typedef union H5FL_blk_list_t {
151  size_t size; /* Size of the page */
152  union H5FL_blk_list_t *next; /* Pointer to next block in free list */
153  double unused1; /* Unused normally, just here for aligment */
154  haddr_t unused2; /* Unused normally, just here for aligment */
156 
157 /* Data structure for priority queue node of block free lists */
158 typedef struct H5FL_blk_node_t {
159  size_t size; /* Size of the blocks in the list */
160  H5FL_blk_list_t *list; /* List of free blocks */
161  struct H5FL_blk_node_t *next; /* Pointer to next free list in queue */
162  struct H5FL_blk_node_t *prev; /* Pointer to previous free list in queue */
164 
165 /* Data structure for priority queue of native block free lists */
166 typedef struct H5FL_blk_head_t {
167  hbool_t init; /* Whether the free list has been initialized */
168  unsigned allocated; /* Number of blocks allocated */
169  unsigned onlist; /* Number of blocks on free list */
170  size_t list_mem; /* Amount of memory in block on free list */
171  const char *name; /* Name of the type */
172  H5FL_blk_node_t *head; /* Pointer to first free list in queue */
174 
175 /*
176  * Macros for defining & using priority queues
177  */
178 #define H5FL_BLK_NAME(t) H5_##t##_blk_free_list
179 #ifndef H5_NO_BLK_FREE_LISTS
180 /* Common macro for H5FL_BLK_DEFINE & H5FL_BLK_DEFINE_STATIC */
181 #define H5FL_BLK_DEFINE_COMMON(t) H5FL_blk_head_t H5FL_BLK_NAME(t)={0,0,0,0,#t"_blk",NULL}
182 
183 /* Declare a free list to manage objects of type 't' */
184 #define H5FL_BLK_DEFINE(t) H5_DLL H5FL_BLK_DEFINE_COMMON(t)
185 
186 /* Reference a free list for type 't' defined in another file */
187 #define H5FL_BLK_EXTERN(t) H5_DLLVAR H5FL_blk_head_t H5FL_BLK_NAME(t)
188 
189 /* Declare a static free list to manage objects of type 't' */
190 #define H5FL_BLK_DEFINE_STATIC(t) static H5FL_BLK_DEFINE_COMMON(t)
191 
192 /* Allocate a block of type 't' */
193 #define H5FL_BLK_MALLOC(t,size) (uint8_t *)H5FL_blk_malloc(&(H5FL_BLK_NAME(t)),size H5FL_TRACK_INFO)
194 
195 /* Allocate a block of type 't' and clear it to zeros */
196 #define H5FL_BLK_CALLOC(t,size) (uint8_t *)H5FL_blk_calloc(&(H5FL_BLK_NAME(t)),size H5FL_TRACK_INFO)
197 
198 /* Free a block of type 't' */
199 #define H5FL_BLK_FREE(t,blk) (uint8_t *)H5FL_blk_free(&(H5FL_BLK_NAME(t)),blk)
200 
201 /* Re-allocate a block of type 't' */
202 #define H5FL_BLK_REALLOC(t,blk,new_size) (uint8_t *)H5FL_blk_realloc(&(H5FL_BLK_NAME(t)),blk,new_size H5FL_TRACK_INFO)
203 
204 /* Check if there is a free block available to re-use */
205 #define H5FL_BLK_AVAIL(t,size) H5FL_blk_free_block_avail(&(H5FL_BLK_NAME(t)),size)
206 
207 #else /* H5_NO_BLK_FREE_LISTS */
208 /* Common macro for H5FL_BLK_DEFINE & H5FL_BLK_DEFINE_STATIC */
209 #define H5FL_BLK_DEFINE_COMMON(t) int H5_ATTR_UNUSED H5FL_BLK_NAME(t)
210 
211 #define H5FL_BLK_DEFINE(t) H5_DLL H5FL_BLK_DEFINE_COMMON(t)
212 #define H5FL_BLK_EXTERN(t) H5_DLLVAR H5FL_BLK_DEFINE_COMMON(t)
213 #define H5FL_BLK_DEFINE_STATIC(t) static H5FL_BLK_DEFINE_COMMON(t)
214 #define H5FL_BLK_MALLOC(t,size) (uint8_t *)H5MM_malloc(size)
215 #define H5FL_BLK_CALLOC(t,size) (uint8_t *)H5MM_calloc(size)
216 #define H5FL_BLK_FREE(t,blk) (uint8_t *)H5MM_xfree(blk)
217 #define H5FL_BLK_REALLOC(t,blk,new_size) (uint8_t *)H5MM_realloc(blk,new_size)
218 #define H5FL_BLK_AVAIL(t,size) (FALSE)
219 #endif /* H5_NO_BLK_FREE_LISTS */
220 
221 /* Data structure to store each array in free list */
222 typedef union H5FL_arr_list_t {
223  union H5FL_arr_list_t *next; /* Pointer to next block in free list */
224  size_t nelem; /* Number of elements in this array */
225  double unused1; /* Unused normally, just here for aligment */
226  haddr_t unused2; /* Unused normally, just here for aligment */
228 
229 /* Data structure for each size of array element */
230 typedef struct H5FL_arr_node_t {
231  size_t size; /* Size of the blocks in the list */
232  unsigned onlist; /* Number of blocks on free list */
233  H5FL_arr_list_t *list; /* List of free blocks */
235 
236 /* Data structure for free list of array blocks */
237 typedef struct H5FL_arr_head_t {
238  hbool_t init; /* Whether the free list has been initialized */
239  unsigned allocated; /* Number of blocks allocated */
240  size_t list_mem; /* Amount of memory in block on free list */
241  const char *name; /* Name of the type */
242  int maxelem; /* Maximum number of elements in an array */
243  size_t base_size; /* Size of the "base" object in the list */
244  size_t elem_size; /* Size of the array elements in the list */
245  H5FL_arr_node_t *list_arr; /* Array of lists of free blocks */
247 
248 /*
249  * Macros for defining & using free lists for an array of a type
250  */
251 #define H5FL_ARR_NAME(t) H5_##t##_arr_free_list
252 #ifndef H5_NO_ARR_FREE_LISTS
253 /* Common macro for H5FL_ARR_DEFINE & H5FL_ARR_DEFINE_STATIC (and H5FL_BARR variants) */
254 #define H5FL_ARR_DEFINE_COMMON(b,t,m) H5FL_arr_head_t H5FL_ARR_NAME(t)={0,0,0,#t"_arr",m+1,b,sizeof(t),NULL}
255 
256 /* Declare a free list to manage arrays of type 't' */
257 #define H5FL_ARR_DEFINE(t,m) H5_DLL H5FL_ARR_DEFINE_COMMON(0,t,m)
258 
259 /* Declare a free list to manage base 'b' + arrays of type 't' */
260 #define H5FL_BARR_DEFINE(b,t,m) H5_DLL H5FL_ARR_DEFINE_COMMON(sizeof(b),t,m)
261 
262 /* Reference a free list for arrays of type 't' defined in another file */
263 #define H5FL_ARR_EXTERN(t) H5_DLLVAR H5FL_arr_head_t H5FL_ARR_NAME(t)
264 
265 /* Declare a static free list to manage arrays of type 't' */
266 #define H5FL_ARR_DEFINE_STATIC(t,m) static H5FL_ARR_DEFINE_COMMON(0,t,m)
267 
268 /* Declare a static free list to manage base 'b' + arrays of type 't' */
269 #define H5FL_BARR_DEFINE_STATIC(b,t,m) static H5FL_ARR_DEFINE_COMMON(sizeof(b),t,m)
270 
271 /* Allocate an array of type 't' */
272 #define H5FL_ARR_MALLOC(t,elem) H5FL_arr_malloc(&(H5FL_ARR_NAME(t)),elem)
273 
274 /* Allocate an array of type 't' and clear it to all zeros */
275 #define H5FL_ARR_CALLOC(t,elem) H5FL_arr_calloc(&(H5FL_ARR_NAME(t)),elem)
276 
277 /* Free an array of type 't' */
278 #define H5FL_ARR_FREE(t,obj) (t *)H5FL_arr_free(&(H5FL_ARR_NAME(t)),obj)
279 
280 /* Re-allocate an array of type 't' */
281 #define H5FL_ARR_REALLOC(t,obj,new_elem) H5FL_arr_realloc(&(H5FL_ARR_NAME(t)),obj,new_elem)
282 
283 #else /* H5_NO_ARR_FREE_LISTS */
284 /* Common macro for H5FL_ARR_DEFINE & H5FL_ARR_DEFINE_STATIC (and H5FL_BARR variants) */
285 #define H5FL_ARR_DEFINE_COMMON(t,m) size_t H5FL_ARR_NAME(t)
286 
287 #define H5FL_ARR_DEFINE(t,m) H5_DLL H5FL_ARR_DEFINE_COMMON(t,m) = 0
288 #define H5FL_BARR_DEFINE(b,t,m) H5_DLL H5FL_ARR_DEFINE_COMMON(t,m) = sizeof(b)
289 #define H5FL_ARR_EXTERN(t) H5_DLLVAR H5FL_ARR_DEFINE_COMMON(t,m)
290 #define H5FL_ARR_DEFINE_STATIC(t,m) static H5FL_ARR_DEFINE_COMMON(t,m) = 0
291 #define H5FL_BARR_DEFINE_STATIC(b,t,m) static H5FL_ARR_DEFINE_COMMON(t,m) = sizeof(b)
292 #define H5FL_ARR_MALLOC(t,elem) H5MM_malloc(H5FL_ARR_NAME(t) + ((elem)*sizeof(t)))
293 #define H5FL_ARR_CALLOC(t,elem) H5MM_calloc(H5FL_ARR_NAME(t) + ((elem)*sizeof(t)))
294 #define H5FL_ARR_FREE(t,obj) (t *)H5MM_xfree(obj)
295 #define H5FL_ARR_REALLOC(t,obj,new_elem) H5MM_realloc(obj,H5FL_ARR_NAME(t) + ((new_elem)*sizeof(t)))
296 #endif /* H5_NO_ARR_FREE_LISTS */
297 
298 /* Data structure for free list of sequence blocks */
299 typedef struct H5FL_seq_head_t {
300  H5FL_blk_head_t queue; /* Priority queue of sequence blocks */
301  size_t size; /* Size of the sequence elements in the list */
303 
304 /*
305  * Macros for defining & using free lists for a sequence of a type
306  *
307  * Sequences are like arrays, except they have no upper limit.
308  *
309  */
310 #define H5FL_SEQ_NAME(t) H5_##t##_seq_free_list
311 #ifndef H5_NO_SEQ_FREE_LISTS
312 /* Common macro for H5FL_SEQ_DEFINE & H5FL_SEQ_DEFINE_STATIC */
313 #define H5FL_SEQ_DEFINE_COMMON(t) H5FL_seq_head_t H5FL_SEQ_NAME(t)={{0,0,0,0,#t"_seq",NULL},sizeof(t)}
314 
315 /* Declare a free list to manage sequences of type 't' */
316 #define H5FL_SEQ_DEFINE(t) H5_DLL H5FL_SEQ_DEFINE_COMMON(t)
317 
318 /* Reference a free list for sequences of type 't' defined in another file */
319 #define H5FL_SEQ_EXTERN(t) H5_DLLVAR H5FL_seq_head_t H5FL_SEQ_NAME(t)
320 
321 /* Declare a static free list to manage sequences of type 't' */
322 #define H5FL_SEQ_DEFINE_STATIC(t) static H5FL_SEQ_DEFINE_COMMON(t)
323 
324 /* Allocate a sequence of type 't' */
325 #define H5FL_SEQ_MALLOC(t,elem) (t *)H5FL_seq_malloc(&(H5FL_SEQ_NAME(t)),elem H5FL_TRACK_INFO)
326 
327 /* Allocate a sequence of type 't' and clear it to all zeros */
328 #define H5FL_SEQ_CALLOC(t,elem) (t *)H5FL_seq_calloc(&(H5FL_SEQ_NAME(t)),elem H5FL_TRACK_INFO)
329 
330 /* Free a sequence of type 't' */
331 #define H5FL_SEQ_FREE(t,obj) (t *)H5FL_seq_free(&(H5FL_SEQ_NAME(t)),obj)
332 
333 /* Re-allocate a sequence of type 't' */
334 #define H5FL_SEQ_REALLOC(t,obj,new_elem) (t *)H5FL_seq_realloc(&(H5FL_SEQ_NAME(t)),obj,new_elem H5FL_TRACK_INFO)
335 
336 #else /* H5_NO_SEQ_FREE_LISTS */
337 /* Common macro for H5FL_SEQ_DEFINE & H5FL_SEQ_DEFINE_STATIC */
338 #define H5FL_SEQ_DEFINE_COMMON(t) int H5_ATTR_UNUSED H5FL_SEQ_NAME(t)
339 
340 #define H5FL_SEQ_DEFINE(t) H5_DLL H5FL_SEQ_DEFINE_COMMON(t)
341 #define H5FL_SEQ_EXTERN(t) H5_DLLVAR H5FL_SEQ_DEFINE_COMMON(t)
342 #define H5FL_SEQ_DEFINE_STATIC(t) static H5FL_SEQ_DEFINE_COMMON(t)
343 #define H5FL_SEQ_MALLOC(t,elem) (t *)H5MM_malloc((elem)*sizeof(t))
344 #define H5FL_SEQ_CALLOC(t,elem) (t *)H5MM_calloc((elem)*sizeof(t))
345 #define H5FL_SEQ_FREE(t,obj) (t *)H5MM_xfree(obj)
346 #define H5FL_SEQ_REALLOC(t,obj,new_elem) (t *)H5MM_realloc(obj,(new_elem)*sizeof(t))
347 #endif /* H5_NO_SEQ_FREE_LISTS */
348 
349 /* Forward declarations of the data structures for free list block factory */
351 typedef struct H5FL_fac_node_t H5FL_fac_node_t;
352 
353 /* Data structure for free list block factory */
354 typedef struct H5FL_fac_head_t {
355  hbool_t init; /* Whether the free list has been initialized */
356  unsigned allocated; /* Number of blocks allocated */
357  unsigned onlist; /* Number of blocks on free list */
358  size_t size; /* Size of the blocks in the list */
359  H5FL_fac_node_t *list; /* List of free blocks */
360  H5FL_fac_gc_node_t *prev_gc; /* Previous garbage collection node in list */
362 
363 
364 /*
365  * Macros for defining & using free list factories
366  *
367  * Factories are dynamically created free list managers for blocks of
368  * a particular size.
369  *
370  */
371 #ifndef H5_NO_FAC_FREE_LISTS
372 /* Allocate a block from a factory */
373 #define H5FL_FAC_MALLOC(f) H5FL_fac_malloc(f H5FL_TRACK_INFO)
374 
375 /* Allocate a block from a factory and clear it to all zeros */
376 #define H5FL_FAC_CALLOC(f) H5FL_fac_calloc(f H5FL_TRACK_INFO)
377 
378 /* Return a block to a factory */
379 #define H5FL_FAC_FREE(f, obj) H5FL_fac_free(f, obj)
380 
381 #else /* H5_NO_FAC_FREE_LISTS */
382 #define H5FL_FAC_MALLOC(f) H5MM_malloc(f->size)
383 #define H5FL_FAC_CALLOC(f) H5MM_calloc(f->size)
384 #define H5FL_FAC_FREE(f, obj) H5MM_xfree(obj)
385 #endif /* H5_NO_FAC_FREE_LISTS */
386 
387 /*
388  * Library prototypes.
389  */
390  /* Block free lists */
393 H5_DLL void * H5FL_blk_free(H5FL_blk_head_t *head, void *block);
394 H5_DLL void * H5FL_blk_realloc(H5FL_blk_head_t *head, void *block, size_t new_size H5FL_TRACK_PARAMS);
396 
397 /* Regular free lists */
400 H5_DLL void * H5FL_reg_free(H5FL_reg_head_t *head, void *obj);
401 
402 /* Array free lists */
403 H5_DLL void * H5FL_arr_malloc(H5FL_arr_head_t *head, size_t elem);
404 H5_DLL void * H5FL_arr_calloc(H5FL_arr_head_t *head, size_t elem);
405 H5_DLL void * H5FL_arr_free(H5FL_arr_head_t *head, void *obj);
406 H5_DLL void * H5FL_arr_realloc(H5FL_arr_head_t *head, void *obj, size_t new_elem);
407 
408 /* Sequence free lists */
409 H5_DLL void * H5FL_seq_malloc(H5FL_seq_head_t *head, size_t elem H5FL_TRACK_PARAMS);
410 H5_DLL void * H5FL_seq_calloc(H5FL_seq_head_t *head, size_t elem H5FL_TRACK_PARAMS);
411 H5_DLL void * H5FL_seq_free(H5FL_seq_head_t *head, void *obj);
412 H5_DLL void * H5FL_seq_realloc(H5FL_seq_head_t *head, void *obj, size_t new_elem H5FL_TRACK_PARAMS);
413 
414 /* Factory free lists */
418 H5_DLL void * H5FL_fac_free(H5FL_fac_head_t *head, void *obj);
420 
421 /* General free list routines */
423 H5_DLL herr_t H5FL_set_free_list_limits(int reg_global_lim, int reg_list_lim,
424  int arr_global_lim, int arr_list_lim, int blk_global_lim, int blk_list_lim,
425  int fac_global_lim, int fac_list_lim);
427 
428 #endif
H5FL_reg_head_t
struct H5FL_reg_head_t H5FL_reg_head_t
H5FL_blk_node_t::list
H5FL_blk_list_t * list
Definition: H5FLprivate.h:160
H5FL_fac_head_t::init
hbool_t init
Definition: H5FLprivate.h:355
H5FL_arr_list_t::unused1
double unused1
Definition: H5FLprivate.h:225
H5FL_reg_calloc
H5_DLL void * H5FL_reg_calloc(H5FL_reg_head_t *head H5FL_TRACK_PARAMS)
Definition: H5FL.c:488
size
iblock size
Definition: H5EAcache.c:787
H5FL_seq_malloc
H5_DLL void * H5FL_seq_malloc(H5FL_seq_head_t *head, size_t elem H5FL_TRACK_PARAMS)
Definition: H5FL.c:1864
H5FL_arr_calloc
H5_DLL void * H5FL_arr_calloc(H5FL_arr_head_t *head, size_t elem)
Definition: H5FL.c:1564
H5FL_reg_head_t
Definition: H5FLprivate.h:97
H5FL_arr_head_t::list_arr
H5FL_arr_node_t * list_arr
Definition: H5FLprivate.h:245
H5FL_arr_node_t::size
size_t size
Definition: H5FLprivate.h:231
H5FL_seq_head_t::queue
H5FL_blk_head_t queue
Definition: H5FLprivate.h:300
H5FL_arr_list_t
Definition: H5FLprivate.h:222
H5FL_fac_head_t::size
size_t size
Definition: H5FLprivate.h:358
H5FL_blk_head_t::head
H5FL_blk_node_t * head
Definition: H5FLprivate.h:172
H5FL_blk_node_t::prev
struct H5FL_blk_node_t * prev
Definition: H5FLprivate.h:162
H5FL_arr_node_t::onlist
unsigned onlist
Definition: H5FLprivate.h:232
haddr_t
CATCH haddr_t
Definition: H5EAdblock.c:162
H5FL_blk_node_t
struct H5FL_blk_node_t H5FL_blk_node_t
H5FL_blk_list_t::next
union H5FL_blk_list_t * next
Definition: H5FLprivate.h:152
H5FL_seq_head_t
Definition: H5FLprivate.h:299
H5FL_blk_node_t::next
struct H5FL_blk_node_t * next
Definition: H5FLprivate.h:161
H5FL_blk_realloc
H5_DLL void * H5FL_blk_realloc(H5FL_blk_head_t *head, void *block, size_t new_size H5FL_TRACK_PARAMS)
Definition: H5FL.c:1121
H5FL_reg_node_t
Definition: H5FLprivate.h:92
H5FL_blk_calloc
H5_DLL void * H5FL_blk_calloc(H5FL_blk_head_t *head, size_t size H5FL_TRACK_PARAMS)
Definition: H5FL.c:978
H5FL_arr_head_t::name
const char * name
Definition: H5FLprivate.h:241
H5FL_blk_head_t::allocated
unsigned allocated
Definition: H5FLprivate.h:168
H5FL_reg_head_t::size
size_t size
Definition: H5FLprivate.h:102
H5FL_arr_node_t
struct H5FL_arr_node_t H5FL_arr_node_t
H5FL_arr_node_t::list
H5FL_arr_list_t * list
Definition: H5FLprivate.h:233
H5FL_blk_head_t
Definition: H5FLprivate.h:166
H5FL_blk_head_t::onlist
unsigned onlist
Definition: H5FLprivate.h:169
H5FL_blk_malloc
H5_DLL void * H5FL_blk_malloc(H5FL_blk_head_t *head, size_t size H5FL_TRACK_PARAMS)
Definition: H5FL.c:886
H5FL_arr_head_t::init
hbool_t init
Definition: H5FLprivate.h:238
H5FL_arr_head_t
Definition: H5FLprivate.h:237
H5FL_blk_list_t::unused1
double unused1
Definition: H5FLprivate.h:153
H5FL_arr_list_t
union H5FL_arr_list_t H5FL_arr_list_t
H5FL_set_free_list_limits
H5_DLL herr_t H5FL_set_free_list_limits(int reg_global_lim, int reg_list_lim, int arr_global_lim, int arr_list_lim, int blk_global_lim, int blk_list_lim, int fac_global_lim, int fac_list_lim)
Definition: H5FL.c:2505
H5FL_blk_list_t
Definition: H5FLprivate.h:150
H5FL_blk_head_t::init
hbool_t init
Definition: H5FLprivate.h:167
H5FL_fac_head_t
Definition: H5FLprivate.h:354
H5FL_blk_node_t
Definition: H5FLprivate.h:158
H5FL_fac_gc_node_t
Definition: H5FL.c:101
block
unable to release heap data block
Definition: H5HL.c:384
htri_t
int htri_t
Definition: H5public.h:160
H5FL_reg_free
H5_DLL void * H5FL_reg_free(H5FL_reg_head_t *head, void *obj)
Definition: H5FL.c:325
H5FL_fac_head_t
struct H5FL_fac_head_t H5FL_fac_head_t
H5FL_reg_node_t
struct H5FL_reg_node_t H5FL_reg_node_t
H5FL_blk_free_block_avail
H5_DLL htri_t H5FL_blk_free_block_avail(H5FL_blk_head_t *head, size_t size)
Definition: H5FL.c:847
H5FL_blk_head_t
struct H5FL_blk_head_t H5FL_blk_head_t
H5FL_seq_free
H5_DLL void * H5FL_seq_free(H5FL_seq_head_t *head, void *obj)
Definition: H5FL.c:1828
H5FL_reg_head_t::allocated
unsigned allocated
Definition: H5FLprivate.h:99
H5FL_reg_head_t::onlist
unsigned onlist
Definition: H5FLprivate.h:100
H5FL_blk_node_t::size
size_t size
Definition: H5FLprivate.h:159
H5FL_arr_list_t::next
union H5FL_arr_list_t * next
Definition: H5FLprivate.h:223
H5FL_arr_list_t::unused2
haddr_t unused2
Definition: H5FLprivate.h:226
H5FL_arr_head_t
struct H5FL_arr_head_t H5FL_arr_head_t
H5FL_arr_head_t::base_size
size_t base_size
Definition: H5FLprivate.h:243
H5FL_fac_head_t::allocated
unsigned allocated
Definition: H5FLprivate.h:356
H5FL_term_interface
H5_DLL int H5FL_term_interface(void)
H5FL_seq_head_t::size
size_t size
Definition: H5FLprivate.h:301
H5FL_blk_list_t::unused2
haddr_t unused2
Definition: H5FLprivate.h:154
H5FL_fac_free
H5_DLL void * H5FL_fac_free(H5FL_fac_head_t *head, void *obj)
Definition: H5FL.c:2043
H5FL_blk_head_t::name
const char * name
Definition: H5FLprivate.h:171
H5FL_arr_free
H5_DLL void * H5FL_arr_free(H5FL_arr_head_t *head, void *obj)
Definition: H5FL.c:1411
H5FL_blk_head_t::list_mem
size_t list_mem
Definition: H5FLprivate.h:170
H5FL_arr_node_t
Definition: H5FLprivate.h:230
H5FL_fac_head_t::list
H5FL_fac_node_t * list
Definition: H5FLprivate.h:359
H5FL_fac_init
H5_DLL H5FL_fac_head_t * H5FL_fac_init(size_t size)
Definition: H5FL.c:1966
H5FL_garbage_coll
H5_DLL herr_t H5FL_garbage_coll(void)
Definition: H5FL.c:2446
H5FL_TRACK_PARAMS
#define H5FL_TRACK_PARAMS
Definition: H5FLprivate.h:83
H5FL_seq_calloc
H5_DLL void * H5FL_seq_calloc(H5FL_seq_head_t *head, size_t elem H5FL_TRACK_PARAMS)
Definition: H5FL.c:1897
H5_DLL
#define H5_DLL
Definition: H5api_adpt.h:234
H5FL_reg_head_t::list
H5FL_reg_node_t * list
Definition: H5FLprivate.h:103
H5FL_reg_head_t::init
hbool_t init
Definition: H5FLprivate.h:98
H5FL_reg_head_t::name
const char * name
Definition: H5FLprivate.h:101
H5FL_seq_realloc
H5_DLL void * H5FL_seq_realloc(H5FL_seq_head_t *head, void *obj, size_t new_elem H5FL_TRACK_PARAMS)
Definition: H5FL.c:1930
H5FL_fac_term
H5_DLL herr_t H5FL_fac_term(H5FL_fac_head_t *head)
Definition: H5FL.c:2340
H5FL_arr_head_t::maxelem
int maxelem
Definition: H5FLprivate.h:242
H5FL_fac_node_t
Definition: H5FL.c:113
H5FL_seq_head_t
struct H5FL_seq_head_t H5FL_seq_head_t
H5FL_reg_node_t::next
struct H5FL_reg_node_t * next
Definition: H5FLprivate.h:93
H5FL_fac_head_t::prev_gc
H5FL_fac_gc_node_t * prev_gc
Definition: H5FLprivate.h:360
H5FL_arr_list_t::nelem
size_t nelem
Definition: H5FLprivate.h:224
H5FL_reg_malloc
H5_DLL void * H5FL_reg_malloc(H5FL_reg_head_t *head H5FL_TRACK_PARAMS)
Definition: H5FL.c:411
herr_t
int herr_t
Definition: H5public.h:128
H5FL_blk_list_t
union H5FL_blk_list_t H5FL_blk_list_t
H5FL_fac_calloc
H5_DLL void * H5FL_fac_calloc(H5FL_fac_head_t *head H5FL_TRACK_PARAMS)
Definition: H5FL.c:2208
hbool_t
bool hbool_t
Definition: H5public.h:159
H5FL_arr_head_t::elem_size
size_t elem_size
Definition: H5FLprivate.h:244
H5FL_arr_head_t::list_mem
size_t list_mem
Definition: H5FLprivate.h:240
H5FL_blk_free
H5_DLL void * H5FL_blk_free(H5FL_blk_head_t *head, void *block)
Definition: H5FL.c:1019
H5FL_blk_list_t::size
size_t size
Definition: H5FLprivate.h:151
H5FL_fac_malloc
H5_DLL void * H5FL_fac_malloc(H5FL_fac_head_t *head H5FL_TRACK_PARAMS)
Definition: H5FL.c:2131
H5FL_arr_head_t::allocated
unsigned allocated
Definition: H5FLprivate.h:239
H5FL_fac_head_t::onlist
unsigned onlist
Definition: H5FLprivate.h:357
H5FL_arr_realloc
H5_DLL void * H5FL_arr_realloc(H5FL_arr_head_t *head, void *obj, size_t new_elem)
Definition: H5FL.c:1602
H5FL_arr_malloc
H5_DLL void * H5FL_arr_malloc(H5FL_arr_head_t *head, size_t elem)
Definition: H5FL.c:1489
H5MMprivate.h