On 2/12/2014 6:06 PM, Tony Harminc wrote:
I object far more to returning an address of 0 than to accepting a length of 0 on the request. To be sure, you are allowed to store no more than 0 bytes in your obtained area, so the 0 address sounds reasonable, but some instructions are allowed by the architecture to recognize access exceptions in the case where no data is stored, e.g. STCM with a zero mask.
The way I get and free storage, I'd be happier with an abend (R form) or non-zero return code. I generally save the length, and then do a FREEMAIN (or STORAGE RELEASE) using the saved length. If the GETMAIN/OBTAIN was accepted, freeing zero length is an instant disaster.
So to be consistent, a non-zero address with appropriate access setup (primarily key) should probably be returned.
Consistent with what? It can't return an address because one wasn't assigned.
Now if you ask me how I would prioritize this requirement...
I'd like it fixed immediately, but honestly couldn't justify this as more important than a level 3, just above a DOC.
Gerhard Postpischil Bradford, Vermont ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
