summaryrefslogtreecommitdiffstats
path: root/src/H5FL.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r2508] Purpose:Albert Cheng2000-09-061-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug fixes Description: All tests were core=dumping in IRIX64. The bug is in Generic property list creation in which malloc asked for 2*64-1 bytes due to coding bug. The object creation failed but the return code was not checked. Program eventually crashed. Solution: H5F.c: Check the return code from new file object creation and flag error accordingly. H5FL.c: H5FL_arr_free is a replacement for H5MM_xfree which accepts null value as a legal argument value. H5FL_arr_free assert on it. Since other parts of the code have been passing null value to H5MM_xfree, H5FL_arr_free must accept it too until all the calling routines are changed to not pass Null. H5P.c: some routine passes in 0 as the hashsize value which is uintn. The expression (hashsize-1) underflows to the largest unsigned int for some machines. Thus the calloc failed. Cast hashsize to unsigned int first (this assumes hashsize stays within the signed int data range. H5Smpio.c: Added the extra parameter because the H5FD_write has been redefined. Platforms tested: IRIX64 -64 and -n32
* [svn-r2502] Added limits to the free lists, so they will automatically ↵Quincey Koziol2000-08-311-6/+6
| | | | | | garbage collect and not eat all the memory in the machine (by default :-)
* [svn-r2470] Changed parameter type from uintn to size_t to clear up some ↵Quincey Koziol2000-08-081-2/+2
| | | | warnings.
* [svn-r2459] Added public API function (H5set_free_list_limits) to allow ↵Quincey Koziol2000-08-041-12/+67
| | | | | | | | limits to be placed on how much memory is used by the free lists before they are garbage collected. The default is to have no limit, with garbage collection only occurring when they cannot allocate memory.
* [svn-r2453] Made free-list code garbage collect if it runs out memory during ↵Quincey Koziol2000-08-011-71/+109
| | | | | | | a memory allocation & attempt to allocate the memory once more. Also re-named a bunch of private functions & structures to align with other function names.
* [svn-r2447] Another small calculation optimization.Quincey Koziol2000-07-281-1/+1
|
* [svn-r2446] Some small performance improvements to various allocations and ↵Quincey Koziol2000-07-281-21/+74
| | | | calculations.
* [svn-r2445] Check in initial coding effort for automatically garbage ↵Quincey Koziol2000-07-271-153/+344
| | | | | | | | collecting the free lists. Each kind of list one has hard-coded limits on when to garbage collect, which will be replaced with user-controllable knobs (through property list settings, I think) once I finish debugging some related performance problems.
* [svn-r2442] Insert better error checking when memory allocation fails (in ↵Quincey Koziol2000-07-251-2/+4
| | | | | | certain obscure situations).
* [svn-r2262] * 2000-05-18Robb Matzke2000-05-181-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ** src/H5Tconv.c ** src/H5Tpkg.h ** src/H5Tpublic.h The H5T_conv_struct_opt() function had a design flaw -- it didn't keep information about the stride to use to step through the temporary/background-value buffer and thus nested invocations would clobber each other's temp buffers. This was fixed by splitting the `stride' argument into `buf_stride' and `bkg_stride' arguments for all the conversion functions. THIS IS AN API CHANGE, but users will get a compiler warning when they pass their conversion function pointer to H5Tregister(). ** src/H5T.c ** src/H5Tprivate.h Added a bkg_stride argument to the H5T_convert() definition in order to fix a bug related to the optimized compound datatype conversion function. ** src/H5T.c ** src/H5A.c ** src/H5D.c ** src/H5Ofill.c ** src/H5P.c Added bkg_stride=0 argument to the H5T_convert() calls. ** test/dtypes.c Added a test for the H5T_conv_struct_opt() bug fixed above. ** src/H5FL.c The H5FL_term() function should return non-zero even when it couldn't free all the free lists do to their being used by some other package. When that other package terminates it will return non-zero, causing H5FL_term() to be called again. This fixes some of the `infinite loop closing library' messages. ** tools/pdb2hdf Uses print_version() instead of doing that itself. ** src/H5Ppublic.h Renamed H5Pget_gc_reference() declaration to make it match the definition. ** src/H5FDlog.c Added API tracing macros. Removed `const' qualifier from a `char*' member of a struct which was allocated on the heap. ** src/H5TB.c Added curly braces to a couple deeply-nested `if' statements to make them clearer and to shut up the increadibly stupid and just plain incorrect gcc warning about ambiguous `else'. ** test/titerate.c Removed incomplete initialization in favor of memset() for one auto variable to stop compiler warnings. ** tools/Depencencies Regenerated to remove references to h5dumputil.c
* [svn-r2165] Fixed last batch of problems when using free-lists on the SGI ↵Quincey Koziol2000-04-201-16/+16
| | | | | | machines. They should (hopefully) work on all platforms again now.
* [svn-r2147] Corrected a few problems in the free-list code and added more ↵Quincey Koziol2000-04-141-2/+30
| | | | | | | | | assert() macros to double-check things. I've turned them back on again now. I also changed the internal representation of a few struct fields to be float instead of double, since the HP/UX 10.20 compiler was having problems with the alignment of the doubles.
* [svn-r2105] Turned off the free lists until I can debug them on the ↵Quincey Koziol2000-04-101-1/+1
| | | | | | platforms they are failing on...
* [svn-r2102] Checking in newer version of free-list code with easy way to ↵Quincey Koziol2000-04-101-0/+52
| | | | | | | | turn off the free-lists for the library. To turn off the free-lists, edit H5FL.c and uncomment the "NO_FREE_LISTS" macro definition near the top of the file. (Or define the macro during compile time)
* [svn-r2073] Added free-list code to the library and took out the older ↵Quincey Koziol2000-04-041-0/+1257
"temporary buffer" code, since the functionality was superceded. See the followup document for details on the free-list code.