When the main task ends all 0-127 memory goes away.  Actually, if memory serves 
me correctly, all memory goes away EXCEPT for the common sub-pools, 225-228, 
231, 239, 241, 245-248 that have to be explicitly allocated and freed.

Chris Blaicher
Technical Architect
Mainframe Development
P: 201-930-8234  |  M: 512-627-3803
E: [email protected]

Syncsort Incorporated
2 Blue Hill Plaza #1563
Pearl River, NY 10965
www.syncsort.com

Data quality leader Trillium Software is now a part of Syncsort.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Thomas David Rivers
Sent: Thursday, March 29, 2018 8:15 AM
To: [email protected]
Subject: Subpool sharing and subpool freeing at main task termination

The documentation for "Subpool handling" from the Assembler Services Guide 
indicates that (for subpools 0-127, which are task-related) "when the task 
terminates, the system automatically releases any of the subpool from
0 through 127 that are unshared and are associated with the task."

It then goes on to note that the SHSPV and SHSPL option on the ATTACH/ATTACHX 
macro can be used to indicate that a subpool is to be shared (other than 
subpool 0 which is, by default, shared.)

My question is the attribute of "shared" - once a subpool is marked shared, can 
it ever be marked non-shared again?  Once all sub-tasks end, does it revert 
back to non-shared, and thus when the main task ends, would the subpool be 
released by the OS?

I can't seem to find any commentary on that question...

That is - if a multi-task address space shares a subpool; is it the 
responsibilty of the main task to release the shared subpool, or will the OS do 
this when the main task ends?

  - Thanks -
 - Dave Rivers -

--
[email protected]                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

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

________________________________



ATTENTION: -----

The information contained in this message (including any files transmitted with 
this message) may contain proprietary, trade secret or other confidential 
and/or legally privileged information. Any pricing information contained in 
this message or in any files transmitted with this message is always 
confidential and cannot be shared with any third parties without prior written 
approval from Syncsort. This message is intended to be read only by the 
individual or entity to whom it is addressed or by their designee. If the 
reader of this message is not the intended recipient, you are on notice that 
any use, disclosure, copying or distribution of this message, in any form, is 
strictly prohibited. If you have received this message in error, please 
immediately notify the sender and/or Syncsort and destroy all copies of this 
message in your possession, custody or control.

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

Reply via email to