From: Ethan M. <merritt@u.washington.edu> - 2004-07-27 20:42:47
|
> > In what sense do you mean the memory use code dies dramatically? If you enable CHECK_HEAP_USE, then gnuplot redefines free() to be an internal function # define free(x) checked_free(x) gp_alloc() allocates extra space and puts a checksum in the allocated chunk of memory, which is checked when it is freed. If the chuck was allocated directly with malloc() rather than gp_alloc() then it doesn't contain this padding, and the attempt to validate this "extra" space in the allocated chunk produces a segfault. > PS: Why isn't gpfree, gp_free; consistent with gp_alloc, etc.? I wondered that as well. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |