Previous Topic: Reentrant Code

Next Topic: Exit Serialization

Storage Subpools

It is possible for the exit to maintain information across calls in GETMAIN storage, remembering the addresses of the storage in the various correlators. If this technique is to be utilized, the storage must be obtained in subpool 50. Storage obtained in any other subpool may be automatically freed when the exit returns to MAI or, in the case of storage obtained on a Session Start call, when that MAI session ends.

It is the responsibility of the exit to free any GETMAIN storage when necessary. MAI will never free storage obtained by the exit.