Enclave termination
When an enclave terminates, Language Environment releases resources allocated
on behalf of the enclave and performs various other activities including
the following:
- Calls HLL-specific termination routines for HLLs that were active during the executing of the program
- Runs Language Environment user-written condition handlers, if present
- Deletes modules loaded by Language Environment
- Frees all storage obtained by Language Environment services
- Calls the CEEBXITA assembler user exit for enclave termination
- Frees Language Environment control blocks for the enclave
- Depending on the setting in the HLL or assembler user exit, Language Environment sets a return code and reason code or an abend.
- Restores the program mask and registers to preinitialization values
- Returns control to the enclave creator