Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (S)
Guardian Procedure Calls Reference Manual522629-013
14-25
SEGMENT_DEALLOCATE_ Procedure
modified (“dirty”) pages, it might take a long time to deallocate the segment. If
flags.<15> is set to 1, the modified pages are not written to the swap file, even if
it is a permanent file. This option is recommended when the swap file has been
made permanent to reserve the swap file space, or when the file contents are
unimportant for any reason.
Breakpoints
Before deallocating a segment, SEGMENT_DEALLOCATE_ removes all memory
access breakpoints set in that segment.
Segment deallocation
When a segment is deallocated, the swap file end of file (EOF) is set to the larger
of the following values:
the EOF when the file was opened by SEGMENT_ALLOCATE_
the end of the highest numbered page that is written to the swap file
Shared segments
A shared segment remains in existence until it has been deallocated by all the
processes that allocated it.
Example
error := SEGMENT_DEALLOCATE_ ( segment^id, , error^detail );
Related Programming Manual
For programming information about the SEGMENT_DEALLOCATE_ memory
management procedure, see the
Guardian Programmers Guide.