Yes, running in Key 8, it could be possible to allocate [E]CSA storage, however, you still need to be either running under an APF authorized job step task or running in supervisor state, which is not common when C/C++ applications are running. Also, there is no option to tell C/C++ to use a specific subpool for storage, so even if authorized, an assembler routine, a Dignus C program with inline assembler or possibly a METAL/C program that issues a STORAGE macro would be required.
Wayne Driscoll Product Developer NOTE: All opinions are strictly my own. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Roland Schiradin Sent: Thursday, June 26, 2008 3:17 PM To: [email protected] Subject: Re: C/C++ malloc() memory allocation AFAIR LE use subpool 2 key 8. However it's possible to allocate CSA/ECSA while running in key8. Since z/OS R8 or R9 you can deny such kind of allocations. Before it was an undocumented option. Roland >I don't recall this ever happening. In order to allocate storage out of >CSA/ECSA the program has to be running authorized. Malloc() gets storage >from private area subpools, in the key of the TCB that created the memory >pool (usually key 8). > >Wayne Driscoll >Product Developer >NOTE: All opinions are strictly my own. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

