The low storage nucleus chain The low stcrage user chain The high storage nucleus chain The high storage user chain
For each of these chains of unallocated elements, there is a control
block consisting of four words# with the following format: POINTER Nue MAX FLAGS I I POINTER -- pointer to the first
o (0) free ele.ent on the chain, or
zero, if the chain is empty. I I I Nue -- the number of elements on 4 (4) the 1. C ... al.R. I I I MAX -- a value equal to or greater I S (S) than the size of the largest I element. I I I I FLAGS- I SKEY - I TCODE -I Unused 1 12 (C) Flag I Storage IFREETAB 1 I byte I key I code I I I J I points to the first element on this chain of free elements.
If there are no elements on this free chain, then the POINTER field contains all zeros.
contains the number of elements on this
elements. If there are no elements on this
this field contains all zeros.
chain of free
free chain, then
is used to avoid searches that will fail. It contains a
number not exceeding the size, in bytes, of the largest
element on the free chain. Thus, a search for an element of a
given size will not be made if that size exceeds the elX field. this number may actually be larger than the
size of the largest free element on the chain.
The following flags are used:
FLCLN (X'SO') -- Clean-up flag. This flag is set if the chain
.ust be updated. This will be necessary in the following
circumstances: If one of the two high storage chains contains a 4K page to
which FREELOVE points, then that page can be re.oved fro.
the chain, and FREELOVE can be increased. All completely unallocated 4K pages are kept on the user
chain, by convention. Thus, if one of the nucleus chains
(low storage or high storage) contains a full page, then
this page must be transferred to the corresponding user
chain.
FLCLB (X'40') -- Destroyed flag. Set if the chain has been
destroyed.
FLHC (X'20') -- High storage chain.
and user high-storage chains.
Set for both the nucleus ces Introduction 2-19
SKEY TCODE FLNU (1'10') -- Nucleus chain. Set for both the low storage
and high storage nucleus chains.
FLPA (1'08') -- Page available. This flag is set if there is
a full 4K page available on the chain. This flag may be set
even if there is no such page available.
contains the one-byte storage key assigned to storage on this
chain.
contains the one-byte FREETAB table code for storage on this
chain. When DMSFREE with TYPE=USER (the default) is called, one or more of the
following steps are taken in an attempt to satisfy the request. As soon as one of following then frea allocation processing terminates.
1. Search the low storage user chain for a block of the required size.
2. Search the high storage user chain for a block of the required
size.
3. Extend high storage user storage downward into the user program
area, modifying FREELOVE in the process.
4. For a variable request, put all available storage in the user
program area onto the high storage user chain, and then allocate
the largest block available on either the high storage user chain
or the low storage user chain. The allocated block will not be
satisfactory unless it is larger than the minimum requested size. When DMSFREE with TYPE=NUCLEUS is called, the fcllowing steps are taken
in an attempt td satisfy the until one succeeds:
1. Search the low storage nucleus chain for a block of the required 2. Get free pages from the low storage user chain, if any are
available, and put them on the low storage nucleus chain.
3. Search the high storage nucleus chain for a block of the -required size.
4. Get free pages from the high storage user chain, if they are
available, and put them on the high storage nucleus chain.
5. Extend high storage nucleus storage downward into the User Program Area, modifying FREELOVE in the process.
6. For variable requests, put all available pages from the user chains
and the user program area onto the nucleus chains, and allocate the
largest block available on either the low storage nucleus chains,
or the high storage nucleus chains. 2-20 IBM VM/370 System Logic and Program Determination--Volume 2
Previous Page Next Page