On 20 July 2016 at 16:14, Peter Hunkeler <[email protected]> wrote:
> 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?

I very much doubt it. I don't see anything in the LE Vendor Interfaces
book. But in any case, would you expect to always see the same length
as what you originally asked for? I believe in all languages supported
by LE and having the notion of "heap", there is nothing to say the
amount allocated cannot exceed the amount asked for. I imagine this is
exactly what will happen; the amount will be rounded up to the nearest
cell size both to avoid fragmentation and to avoid having to keep two
lengths around.

I'm curious; what will you do with this info if it is available?

Tony H.

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

Reply via email to