by Dave » Thu Jan 28, 2016 8:42 pm
Thanks all for the quick responses. A contact of mine also sent me an answer that I thought I'd post here for future reference. Basically it is the debugging point of view that you all mentioned.
"In researching the "heap_free_value" it appears that its main purpose in debugging. From the manual, "zOS RAS Guidelines and Debug Guide for Ported Software" it says:
Detecting the storing of data into freed storage.
When using the heapchk function, the use of HEAPCHK(ON,delay,frequency) with
STORAGE(,heap_free_value) results in checking the free areas of the heap. LE sets the storage area to a repeating value of choice, like hex ‘FF’. If your program stores into a free area, an error is signaled. The intent is to ensure that the freed storage areas contain the “free value” in them and to verify that your program frees the correct storage area.
So if you have debugging issues then it is worthwhile to turn on along with HEAPCHK. Otherwise, I don't see the need unless you are paranoid about things like the NSA."
Also, I only plan on setting the Heap_free_value to NONE. We have some bad programs here that need the storage initialized to 00, so I'll leave that parm as is. (because getting the applications folks to actually fix their code is not going to happen...)