I've documented this some time ago for my own use and
for the use of a customer of mine, and it is not very complicated.
But I don't recall the details at the moment.

I wrote a routine, too, that writes a report of all allocated areas,
if you give one valid address to it; that is possible, because all areas
are chained together in some kind of chains of tree structures;
there are different chains for ANYHEAP, BELOWHEAP etc. -
IIRC, the anchors of these chains are in the CEECAA, so maybe
they can even be found without a valid address.

One problem is: there are different heap managers, and you can write
one of your own; for example CEL4MCHK is one that IBM provides
to check for potential memory leak. This one and how to use it is
documented in the Vendor Interface book ... and: maybe other heap
managers have other logic. So I can only describe the NORMAL
LE heap manager as it is at that particular moment (or: as it was in 2013,
because that's when I did this examination).

Contact me offline, if you really need this information
(because it will need some time to find the documents)

Kind regards

Bernd


Am 20.07.2016 um 22:14 schrieb Peter Hunkeler:
When using LE service CEEGTST to allocate a piece of heap storage, the length 
is provided by the caller of the service and the address of the storage is 
returned by the service. To free that storage CEEFRST is called. Only the 
addressof the area, as returned by CEEGTST, has to be passed to the service. LE 
remembers the length of the area.

Is there an interface or any other documented way to get the length of an area 
at a given address?


--
Peter Hunkeler




--
Peter Hunkeler

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to